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