Class Error
java.lang.Object
de.hybris.platform.b2ctelcotmfresources.v4.dto.Error
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionatBaseType(String atBaseType) atSchemaLocation(String atSchemaLocation) booleanWhen sub-classing, this defines the super-class.A URI to a JSON-Schema file that defines additional attributes and relationshipsWhen sub-classing, this defines the sub-class entity name.@NotNull StringgetCode()Application relevant detail, defined in the API or a common list.More details and corrective actions related to the error which can be shown to a client user.@NotNull StringExplanation of the reason for the error which can be shown to a client user.URI of documentation describing the error.HTTP Error code extensioninthashCode()referenceError(String referenceError) voidsetAtBaseType(String atBaseType) voidsetAtSchemaLocation(String atSchemaLocation) voidvoidvoidsetMessage(String message) voidvoidsetReferenceError(String referenceError) voidtoString()
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
code
-
getCode
Application relevant detail, defined in the API or a common list.- Returns:
- code
-
setCode
-
reason
-
getReason
Explanation of the reason for the error which can be shown to a client user.- Returns:
- reason
-
setReason
-
message
-
getMessage
More details and corrective actions related to the error which can be shown to a client user.- Returns:
- message
-
setMessage
-
status
-
getStatus
HTTP Error code extension- Returns:
- status
-
setStatus
-
referenceError
-
getReferenceError
URI of documentation describing the error.- Returns:
- referenceError
-
setReferenceError
-
atBaseType
-
getAtBaseType
When sub-classing, this defines the super-class.- Returns:
- atBaseType
-
setAtBaseType
-
atSchemaLocation
-
getAtSchemaLocation
A URI to a JSON-Schema file that defines additional attributes and relationships- Returns:
- atSchemaLocation
-
setAtSchemaLocation
-
atType
-
getAtType
When sub-classing, this defines the sub-class entity name.- Returns:
- atType
-
setAtType
-
equals
-
hashCode
public int hashCode() -
toString
-