public class FessApiFailureHook extends Object implements org.lastaflute.web.api.ApiFailureHook
| Modifier and Type | Field and Description |
|---|---|
protected static int |
HTTP_BAD_REQUEST |
protected static int |
HTTP_UNAUTHORIZED |
| Constructor and Description |
|---|
FessApiFailureHook() |
| Modifier and Type | Method and Description |
|---|---|
protected org.lastaflute.web.response.JsonResponse<ApiResult> |
asJson(ApiResult bean) |
protected ApiResult |
createFailureBean(ApiResult.Status status,
String message) |
protected String |
createMessage(org.lastaflute.web.api.ApiFailureResource resource,
RuntimeException cause) |
org.lastaflute.web.response.ApiResponse |
handleApplicationException(org.lastaflute.web.api.ApiFailureResource resource,
RuntimeException cause) |
org.dbflute.optional.OptionalThing<org.lastaflute.web.response.ApiResponse> |
handleClientException(org.lastaflute.web.api.ApiFailureResource resource,
RuntimeException cause) |
org.dbflute.optional.OptionalThing<org.lastaflute.web.response.ApiResponse> |
handleServerException(org.lastaflute.web.api.ApiFailureResource resource,
Throwable cause) |
org.lastaflute.web.response.ApiResponse |
handleValidationError(org.lastaflute.web.api.ApiFailureResource resource) |
protected static final int HTTP_BAD_REQUEST
protected static final int HTTP_UNAUTHORIZED
public org.lastaflute.web.response.ApiResponse handleValidationError(org.lastaflute.web.api.ApiFailureResource resource)
handleValidationError in interface org.lastaflute.web.api.ApiFailureHookpublic org.lastaflute.web.response.ApiResponse handleApplicationException(org.lastaflute.web.api.ApiFailureResource resource,
RuntimeException cause)
handleApplicationException in interface org.lastaflute.web.api.ApiFailureHookpublic org.dbflute.optional.OptionalThing<org.lastaflute.web.response.ApiResponse> handleClientException(org.lastaflute.web.api.ApiFailureResource resource,
RuntimeException cause)
handleClientException in interface org.lastaflute.web.api.ApiFailureHookpublic org.dbflute.optional.OptionalThing<org.lastaflute.web.response.ApiResponse> handleServerException(org.lastaflute.web.api.ApiFailureResource resource,
Throwable cause)
handleServerException in interface org.lastaflute.web.api.ApiFailureHookprotected ApiResult createFailureBean(ApiResult.Status status, String message)
protected String createMessage(org.lastaflute.web.api.ApiFailureResource resource, RuntimeException cause)
Copyright © 2009–2017 CodeLibs. All rights reserved.