Package io.voucherify.client.model
Class Error
java.lang.Object
io.voucherify.client.model.Error
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Error
extends Object
Error details
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanerror(ErrorError error) static ErrorCreate an instance of Error given an JSON stringgetCode()Error's HTTP status code.A human-readable message providing more details about the error.getError()Get errorgetKey()Short string describing the kind of error which occurred.A human-readable message providing a short description of the error.This ID is useful when troubleshooting and/or finding the root cause of an error response by our support team.Unique resource ID that can be used in another endpoint to get more details.The resource type.inthashCode()resourceId(String resourceId) resourceType(String resourceType) voidvoidsetDetails(String details) voidsetError(ErrorError error) voidvoidsetMessage(String message) voidsetRequestId(String requestId) voidsetResourceId(String resourceId) voidsetResourceType(String resourceType) toJson()Convert an instance of Error to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CODE
- See Also:
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_DETAILS
- See Also:
-
SERIALIZED_NAME_REQUEST_ID
- See Also:
-
SERIALIZED_NAME_RESOURCE_ID
- See Also:
-
SERIALIZED_NAME_RESOURCE_TYPE
- See Also:
-
SERIALIZED_NAME_ERROR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
code
-
getCode
Error's HTTP status code.- Returns:
- code
-
setCode
-
key
-
getKey
Short string describing the kind of error which occurred.- Returns:
- key
-
setKey
-
message
-
getMessage
A human-readable message providing a short description of the error.- Returns:
- message
-
setMessage
-
details
-
getDetails
A human-readable message providing more details about the error.- Returns:
- details
-
setDetails
-
requestId
-
getRequestId
This ID is useful when troubleshooting and/or finding the root cause of an error response by our support team.- Returns:
- requestId
-
setRequestId
-
resourceId
-
getResourceId
Unique resource ID that can be used in another endpoint to get more details.- Returns:
- resourceId
-
setResourceId
-
resourceType
-
getResourceType
The resource type.- Returns:
- resourceType
-
setResourceType
-
error
-
getError
Get error- Returns:
- error
-
setError
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of Error given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Error
- Throws:
IOException- if the JSON string is invalid with respect to Error
-
toJson
Convert an instance of Error to an JSON string- Returns:
- JSON string
-