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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyDeep()booleangetError()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 theerrorsarray.HTTP status code corresponding to the error.inthashCode()voidError code as per the OAuth 2.0 specification.voidsetErrorDescription(String errorDescription) Plain text description of the first error.voidsetErrors(ErrorObject... errors) Authentication and authorization-related errors returned for a request.voidsetErrors(List<ErrorObject> errors) Authentication and authorization-related errors returned for a request.voidsetMessage(String message) First error message in theerrorsarray.voidsetStatusCode(Integer statusCode) HTTP status code corresponding to the error.toString()Methods inherited from interface com.commercetools.api.models.error.AuthErrorResponse
withAuthErrorResponseMethods inherited from interface com.commercetools.api.models.error.ErrorResponse
withErrorResponseMethods 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:
getStatusCodein interfaceErrorResponse- Returns:
- statusCode
-
getMessage
First error message in the
errorsarray.- Specified by:
getMessagein interfaceErrorResponse- Returns:
- message
-
getErrors
Authentication and authorization-related errors returned for a request.
- Specified by:
getErrorsin interfaceAuthErrorResponse- Specified by:
getErrorsin interfaceErrorResponse- Returns:
- errors
-
getError
Error code as per the OAuth 2.0 specification. For example:
"access_denied".- Specified by:
getErrorin interfaceAuthErrorResponse- Returns:
- error
-
getErrorDescription
Plain text description of the first error.
- Specified by:
getErrorDescriptionin interfaceAuthErrorResponse- Returns:
- error_description
-
setStatusCode
Description copied from interface:ErrorResponseHTTP status code corresponding to the error.
- Specified by:
setStatusCodein interfaceErrorResponse- Parameters:
statusCode- value to be set
-
setMessage
Description copied from interface:ErrorResponseFirst error message in the
errorsarray.- Specified by:
setMessagein interfaceErrorResponse- Parameters:
message- value to be set
-
setErrors
Description copied from interface:AuthErrorResponseAuthentication and authorization-related errors returned for a request.
- Specified by:
setErrorsin interfaceAuthErrorResponse- Specified by:
setErrorsin interfaceErrorResponse- Parameters:
errors- values to be set
-
setErrors
Description copied from interface:AuthErrorResponseAuthentication and authorization-related errors returned for a request.
- Specified by:
setErrorsin interfaceAuthErrorResponse- Specified by:
setErrorsin interfaceErrorResponse- Parameters:
errors- values to be set
-
setError
Description copied from interface:AuthErrorResponseError code as per the OAuth 2.0 specification. For example:
"access_denied".- Specified by:
setErrorin interfaceAuthErrorResponse- Parameters:
error- value to be set
-
setErrorDescription
Description copied from interface:AuthErrorResponsePlain text description of the first error.
- Specified by:
setErrorDescriptionin interfaceAuthErrorResponse- Parameters:
errorDescription- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-
copyDeep
- Specified by:
copyDeepin interfaceAuthErrorResponse- Specified by:
copyDeepin interfaceErrorResponse
-