Class InvalidJsonInputErrorImpl
java.lang.Object
com.commercetools.api.models.error.InvalidJsonInputErrorImpl
- All Implemented Interfaces:
ErrorObject
,InvalidJsonInputError
,io.vrap.rmf.base.client.ModelBase
public class InvalidJsonInputErrorImpl
extends Object
implements InvalidJsonInputError, io.vrap.rmf.base.client.ModelBase
Returned when an invalid JSON input has been sent. Either the JSON is syntactically incorrect or does not conform to the expected shape (for example is missing a required field).
The client application should validate the input according to the constraints described in the error message before sending the request.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.InvalidJsonInputError
INVALID_JSON_INPUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Further explanation about why the JSON is invalid."Request body does not contain valid JSON."
int
hashCode()
void
setDetailedErrorMessage
(String detailedErrorMessage) Further explanation about why the JSON is invalid.void
setMessage
(String message) "Request body does not contain valid JSON."
void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface com.commercetools.api.models.error.InvalidJsonInputError
withInvalidJsonInputError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
InvalidJsonInputErrorImpl
public InvalidJsonInputErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceInvalidJsonInputError
- Returns:
- code
-
getMessage
"Request body does not contain valid JSON."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceInvalidJsonInputError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getDetailedErrorMessage
Further explanation about why the JSON is invalid.
- Specified by:
getDetailedErrorMessage
in interfaceInvalidJsonInputError
- Returns:
- detailedErrorMessage
-
setMessage
Description copied from interface:InvalidJsonInputError
"Request body does not contain valid JSON."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceInvalidJsonInputError
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setDetailedErrorMessage
Description copied from interface:InvalidJsonInputError
Further explanation about why the JSON is invalid.
- Specified by:
setDetailedErrorMessage
in interfaceInvalidJsonInputError
- Parameters:
detailedErrorMessage
- value to be set
-
equals
-
hashCode
-