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.void
setType
(IErrorType type) Sets theIErrorType
that 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 theIErrorType
that represents the code of the error that occurred.- Parameters:
type
- The error response type.
-
getErrorCode
Description copied from class:ErrorResponse
Returns the error code of the response.- Overrides:
getErrorCode
in classErrorResponse
- Returns:
- The error code.
-