Class AuthErrorResponseImpl
java.lang.Object
com.commercetools.api.models.error.AuthErrorResponseImpl
- All Implemented Interfaces:
AuthErrorResponse
,ErrorResponse
,io.vrap.rmf.base.client.ModelBase
public class AuthErrorResponseImpl
extends Object
implements AuthErrorResponse, io.vrap.rmf.base.client.ModelBase
Represents errors related to authentication and authorization in a format conforming to the OAuth 2.0 specification.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getError()
Error code as per the OAuth 2.0 specification.Plain text description of the first error.Authentication and authorization-related errors returned for a request.First error message in theerrors
array.HTTP status code corresponding to the error.int
hashCode()
void
Error code as per the OAuth 2.0 specification.void
setErrorDescription
(String errorDescription) Plain text description of the first error.void
setErrors
(ErrorObject... errors) Authentication and authorization-related errors returned for a request.void
setErrors
(List<ErrorObject> errors) Authentication and authorization-related errors returned for a request.void
setMessage
(String message) First error message in theerrors
array.void
setStatusCode
(Integer statusCode) HTTP status code corresponding to the error.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.AuthErrorResponse
withAuthErrorResponse
Methods inherited from interface com.commercetools.api.models.error.ErrorResponse
withErrorResponse
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
AuthErrorResponseImpl
public AuthErrorResponseImpl()create empty instance
-
-
Method Details
-
getStatusCode
HTTP status code corresponding to the error.
- Specified by:
getStatusCode
in interfaceErrorResponse
- Returns:
- statusCode
-
getMessage
First error message in the
errors
array.- Specified by:
getMessage
in interfaceErrorResponse
- Returns:
- message
-
getErrors
Authentication and authorization-related errors returned for a request.
- Specified by:
getErrors
in interfaceAuthErrorResponse
- Specified by:
getErrors
in interfaceErrorResponse
- Returns:
- errors
-
getError
Error code as per the OAuth 2.0 specification. For example:
"access_denied"
.- Specified by:
getError
in interfaceAuthErrorResponse
- Returns:
- error
-
getErrorDescription
Plain text description of the first error.
- Specified by:
getErrorDescription
in interfaceAuthErrorResponse
- Returns:
- error_description
-
setStatusCode
Description copied from interface:ErrorResponse
HTTP status code corresponding to the error.
- Specified by:
setStatusCode
in interfaceErrorResponse
- Parameters:
statusCode
- value to be set
-
setMessage
Description copied from interface:ErrorResponse
First error message in the
errors
array.- Specified by:
setMessage
in interfaceErrorResponse
- Parameters:
message
- value to be set
-
setErrors
Description copied from interface:AuthErrorResponse
Authentication and authorization-related errors returned for a request.
- Specified by:
setErrors
in interfaceAuthErrorResponse
- Specified by:
setErrors
in interfaceErrorResponse
- Parameters:
errors
- values to be set
-
setErrors
Description copied from interface:AuthErrorResponse
Authentication and authorization-related errors returned for a request.
- Specified by:
setErrors
in interfaceAuthErrorResponse
- Specified by:
setErrors
in interfaceErrorResponse
- Parameters:
errors
- values to be set
-
setError
Description copied from interface:AuthErrorResponse
Error code as per the OAuth 2.0 specification. For example:
"access_denied"
.- Specified by:
setError
in interfaceAuthErrorResponse
- Parameters:
error
- value to be set
-
setErrorDescription
Description copied from interface:AuthErrorResponse
Plain text description of the first error.
- Specified by:
setErrorDescription
in interfaceAuthErrorResponse
- Parameters:
errorDescription
- value to be set
-
equals
-
hashCode
-