Class ErrorResponseImpl
java.lang.Object
com.commercetools.importapi.models.errors.ErrorResponseImpl
- All Implemented Interfaces:
ErrorResponse
,io.vrap.rmf.base.client.ModelBase
public class ErrorResponseImpl
extends Object
implements ErrorResponse, io.vrap.rmf.base.client.ModelBase
The response in case of an error.
-
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()
This property is only used for OAuth2 errors.This property is only used for OAuth2 errors.The errors that caused this error response.Describes the error.The http status code of the response.int
hashCode()
void
This property is only used for OAuth2 errors.void
setErrorDescription
(String errorDescription) This property is only used for OAuth2 errors.void
setErrors
(ErrorObject... errors) The errors that caused this error response.void
setErrors
(List<ErrorObject> errors) The errors that caused this error response.void
setMessage
(String message) Describes the error.void
setStatusCode
(Integer statusCode) The http status code of the response.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.importapi.models.errors.ErrorResponse
withErrorResponse
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ErrorResponseImpl
public ErrorResponseImpl()create empty instance
-
-
Method Details
-
getStatusCode
The http status code of the response.
- Specified by:
getStatusCode
in interfaceErrorResponse
- Returns:
- statusCode
-
getMessage
Describes the error.
- Specified by:
getMessage
in interfaceErrorResponse
- Returns:
- message
-
getError
This property is only used for OAuth2 errors. Contains the error code.
- Specified by:
getError
in interfaceErrorResponse
- Returns:
- error
-
getErrorDescription
This property is only used for OAuth2 errors. Additional information to assist the client developer in understanding the error.
- Specified by:
getErrorDescription
in interfaceErrorResponse
- Returns:
- error_description
-
getErrors
The errors that caused this error response.
- Specified by:
getErrors
in interfaceErrorResponse
- Returns:
- errors
-
setStatusCode
Description copied from interface:ErrorResponse
The http status code of the response.
- Specified by:
setStatusCode
in interfaceErrorResponse
- Parameters:
statusCode
- value to be set
-
setMessage
Description copied from interface:ErrorResponse
Describes the error.
- Specified by:
setMessage
in interfaceErrorResponse
- Parameters:
message
- value to be set
-
setError
Description copied from interface:ErrorResponse
This property is only used for OAuth2 errors. Contains the error code.
- Specified by:
setError
in interfaceErrorResponse
- Parameters:
error
- value to be set
-
setErrorDescription
Description copied from interface:ErrorResponse
This property is only used for OAuth2 errors. Additional information to assist the client developer in understanding the error.
- Specified by:
setErrorDescription
in interfaceErrorResponse
- Parameters:
errorDescription
- value to be set
-
setErrors
Description copied from interface:ErrorResponse
The errors that caused this error response.
- Specified by:
setErrors
in interfaceErrorResponse
- Parameters:
errors
- values to be set
-
setErrors
Description copied from interface:ErrorResponse
The errors that caused this error response.
- Specified by:
setErrors
in interfaceErrorResponse
- Parameters:
errors
- values to be set
-
equals
-
hashCode
public int hashCode()
-