Package cn.royalcms.component.api
Class ApiErrorResponse
- java.lang.Object
-
- cn.royalcms.component.api.ApiErrorResponse
-
- All Implemented Interfaces:
ApiResponseInterface
public class ApiErrorResponse extends Object implements ApiResponseInterface
-
-
Constructor Summary
Constructors Constructor Description ApiErrorResponse(ApiError errors)
ApiErrorResponse(Integer code, String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiError
getErrors()
String
getStatus()
static ApiErrorResponse
of(ApiError errors)
static ApiErrorResponse
of(Integer code, String message)
-
-
-
Method Detail
-
of
public static ApiErrorResponse of(Integer code, String message)
-
of
public static ApiErrorResponse of(ApiError errors)
-
getStatus
public String getStatus()
-
getErrors
public ApiError getErrors()
-
-