Package ai.reveng.model
Class ErrorBody
java.lang.Object
ai.reveng.model.ErrorBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ErrorBody
extends Object
ErrorBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStable, machine-readable error code.static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode(ErrorBody.CodeEnum code) booleanstatic ErrorBodyCreate an instance of ErrorBody given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCode()Stable, machine-readable error code.Additional context where helpful (quota numbers, validation specifics, etc.).Link to documentation explaining this error and resolution steps.Human-readable summary.Correlation ID from the request.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCode(ErrorBody.CodeEnum code) voidvoidvoidsetMessage(String message) voidsetTraceId(String traceId) toJson()Convert an instance of ErrorBody to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CODE
- See Also:
-
SERIALIZED_NAME_DETAIL
- See Also:
-
SERIALIZED_NAME_DOC_URL
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_TRACE_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ErrorBody
public ErrorBody()
-
-
Method Details
-
code
-
getCode
Stable, machine-readable error code. Versioned and documented.- Returns:
- code
-
setCode
-
detail
-
getDetail
Additional context where helpful (quota numbers, validation specifics, etc.).- Returns:
- detail
-
setDetail
-
docUrl
-
getDocUrl
Link to documentation explaining this error and resolution steps.- Returns:
- docUrl
-
setDocUrl
-
message
-
getMessage
Human-readable summary. Never contains internals. Suitable for direct display.- Returns:
- message
-
setMessage
-
traceId
-
getTraceId
Correlation ID from the request. Quote this in support requests.- Returns:
- traceId
-
setTraceId
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the ErrorBody instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ErrorBody
-
fromJson
Create an instance of ErrorBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ErrorBody
- Throws:
IOException- if the JSON string is invalid with respect to ErrorBody
-
toJson
Convert an instance of ErrorBody to an JSON string- Returns:
- JSON string
-