Class ApiErrorResponseResource

java.lang.Object
org.hawaiiframework.web.resource.ErrorResponseResource
org.hawaiiframework.web.resource.ApiErrorResponseResource

public class ApiErrorResponseResource extends ErrorResponseResource
Response handler for API errors.
Since:
2.0.0
  • Constructor Details

    • ApiErrorResponseResource

      public ApiErrorResponseResource()
    • ApiErrorResponseResource

      public ApiErrorResponseResource(ApiException apiException)
  • Method Details

    • getApiErrorCode

      public String getApiErrorCode()
      Getter for error code.
      Returns:
      the error code
    • setApiErrorCode

      public void setApiErrorCode(String apiErrorCode)
      Setter for error code.
      Parameters:
      apiErrorCode - the error code
    • getApiErrorReason

      public String getApiErrorReason()
      Getter for reason.
      Returns:
      the reason
    • setApiErrorReason

      public void setApiErrorReason(String apiErrorReason)
      Setter for reason.
      Parameters:
      apiErrorReason - the reason