Package org.hawaiiframework.web.resource
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
 - Author:
 - Paul Klos
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ApiErrorResponseResource()ApiErrorResponseResource(ApiException apiException) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApiErrorCode()Getter for error code.StringgetApiErrorReason()Getter for reason.voidsetApiErrorCode(String apiErrorCode)Setter for error code.voidsetApiErrorReason(String apiErrorReason)Setter for reason.- 
Methods inherited from class org.hawaiiframework.web.resource.ErrorResponseResource
getContentType, getErrorMessage, getMethod, getQuery, getStatusCode, getStatusMessage, getThrowable, getUri, setContentType, setErrorMessage, setMethod, setQuery, setStatusCode, setStatusMessage, setUri, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ApiErrorResponseResource
public ApiErrorResponseResource()
 
- 
ApiErrorResponseResource
public ApiErrorResponseResource(ApiException apiException)
 
 - 
 
- 
Method Detail
- 
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
 
 - 
 
 -