Class FessApiFailureHook

  • All Implemented Interfaces:
    org.lastaflute.web.api.ApiFailureHook

    public class FessApiFailureHook
    extends Object
    implements org.lastaflute.web.api.ApiFailureHook
    Author:
    jflute
    • Constructor Detail

      • FessApiFailureHook

        public FessApiFailureHook()
    • Method Detail

      • handleValidationError

        public org.lastaflute.web.response.ApiResponse handleValidationError​(org.lastaflute.web.api.ApiFailureResource resource)
        Specified by:
        handleValidationError in interface org.lastaflute.web.api.ApiFailureHook
      • handleApplicationException

        public org.lastaflute.web.response.ApiResponse handleApplicationException​(org.lastaflute.web.api.ApiFailureResource resource,
                                                                                  RuntimeException cause)
        Specified by:
        handleApplicationException in interface org.lastaflute.web.api.ApiFailureHook
      • handleClientException

        public org.dbflute.optional.OptionalThing<org.lastaflute.web.response.ApiResponse> handleClientException​(org.lastaflute.web.api.ApiFailureResource resource,
                                                                                                                 RuntimeException cause)
        Specified by:
        handleClientException in interface org.lastaflute.web.api.ApiFailureHook
      • handleServerException

        public org.dbflute.optional.OptionalThing<org.lastaflute.web.response.ApiResponse> handleServerException​(org.lastaflute.web.api.ApiFailureResource resource,
                                                                                                                 Throwable cause)
        Specified by:
        handleServerException in interface org.lastaflute.web.api.ApiFailureHook
      • asJson

        protected org.lastaflute.web.response.JsonResponse<ApiResult> asJson​(ApiResult bean)
      • createMessage

        protected String createMessage​(org.lastaflute.web.api.ApiFailureResource resource,
                                       RuntimeException cause)