Class FessApiFailureHook

java.lang.Object
org.codelibs.fess.mylasta.direction.sponsor.FessApiFailureHook
All Implemented Interfaces:
org.lastaflute.web.api.ApiFailureHook

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

  • Constructor Details

    • FessApiFailureHook

      public FessApiFailureHook()
  • Method Details

    • 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)
    • createFailureBean

      protected ApiResult createFailureBean(ApiResult.Status status, String message)
    • createMessage

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