Package io.jans.as.model.error
Class DefaultErrorResponse
- java.lang.Object
-
- io.jans.as.model.error.ErrorResponse
-
- io.jans.as.model.error.DefaultErrorResponse
-
public class DefaultErrorResponse extends ErrorResponse
- Version:
- August 20, 2019
- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description DefaultErrorResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorCode()Returns the error code of the response.IErrorTypegetType()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
-
-
-
-
Method Detail
-
getType
public IErrorType getType()
Returns the error response type.- Returns:
- The error response type.
-
setType
public void setType(IErrorType type)
Sets theIErrorTypethat represents the code of the error that occurred.- Parameters:
type- The error response type.
-
getErrorCode
public java.lang.String getErrorCode()
Description copied from class:ErrorResponseReturns the error code of the response.- Overrides:
getErrorCodein classErrorResponse- Returns:
- The error code.
-
-