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 stringgetCode()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()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
-
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
-