Package com.arms.util.response
Class CommonResponse
- java.lang.Object
-
- com.arms.util.response.CommonResponse
-
public class CommonResponse extends java.lang.Object
CommonResponse은 Response의 결과를 리턴해주는 클래스이다..
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommonResponse.ApiError
static class
CommonResponse.ApiResult<T>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> CommonResponse.ApiResult<T>
error(ErrorCode errorCode, org.springframework.http.HttpStatus status)
static <T> CommonResponse.ApiResult<T>
error(java.lang.String message, ErrorCode errorCode, org.springframework.http.HttpStatus status)
static <T> CommonResponse.ApiResult<T>
error(java.lang.String message, org.springframework.http.HttpStatus status)
static <T> CommonResponse.ApiResult<T>
error(java.lang.Throwable throwable, org.springframework.http.HttpStatus status)
static <T> CommonResponse.ApiResult<T>
success(T response)
-
-
-
Method Detail
-
success
public static <T> CommonResponse.ApiResult<T> success(T response)
-
error
public static <T> CommonResponse.ApiResult<T> error(java.lang.Throwable throwable, org.springframework.http.HttpStatus status)
-
error
public static <T> CommonResponse.ApiResult<T> error(java.lang.String message, org.springframework.http.HttpStatus status)
-
error
public static <T> CommonResponse.ApiResult<T> error(ErrorCode errorCode, org.springframework.http.HttpStatus status)
-
error
public static <T> CommonResponse.ApiResult<T> error(java.lang.String message, ErrorCode errorCode, org.springframework.http.HttpStatus status)
-
-