Package io.jans.as.model.error
Class DefaultErrorResponse
java.lang.Object
io.jans.as.model.error.ErrorResponse
io.jans.as.model.error.DefaultErrorResponse
- Version:
- August 20, 2019
- Author:
- Yuriy Zabrovarnyy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the error code of the response.getType()Returns the error response type.voidsetType(IErrorType type) Sets theIErrorTypethat represents the code of the error that occurred.Methods inherited from class io.jans.as.model.error.ErrorResponse
getErrorDescription, getErrorUri, getReason, getState, getStatus, setErrorCode, setErrorDescription, setErrorUri, setReason, setState, setStatus, toJSonString, toQueryString
-
Constructor Details
-
DefaultErrorResponse
public DefaultErrorResponse()
-
-
Method Details
-
getType
Returns the error response type.- Returns:
- The error response type.
-
setType
Sets theIErrorTypethat represents the code of the error that occurred.- Parameters:
type- The error response type.
-
getErrorCode
Description copied from class:ErrorResponseReturns the error code of the response.- Overrides:
getErrorCodein classErrorResponse- Returns:
- The error code.
-