Package sh.ory.model
Class GenericError
java.lang.Object
sh.ory.model.GenericError
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-03-08T19:41:46.895754881Z[Etc/UTC]") public class GenericError extends Object
Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred.
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CODEstatic StringSERIALIZED_NAME_DEBUGstatic StringSERIALIZED_NAME_DETAILSstatic StringSERIALIZED_NAME_ERRORstatic StringSERIALIZED_NAME_ERROR_DESCRIPTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_REASONstatic StringSERIALIZED_NAME_REQUESTstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_STATUS_CODE -
Constructor Summary
Constructors Constructor Description GenericError() -
Method Summary
Modifier and Type Method Description GenericErrorcode(Long code)GenericErrordebug(String debug)GenericErrordetails(Object details)booleanequals(Object o)GenericErrorerror(String error)GenericErrorerrorDescription(String errorDescription)LonggetCode()The status codeStringgetDebug()Debug contains debug information.ObjectgetDetails()Further error detailsStringgetError()Name is the error name.StringgetErrorDescription()Description contains further information on the nature of the error.StringgetId()The error ID Useful when trying to identify various errors in application logic.StringgetMessage()Message contains the error message.StringgetReason()A human-readable reason for the errorStringgetRequest()The request ID The request ID is often exposed internally in order to trace errors across service architectures.StringgetStatus()The status descriptionLonggetStatusCode()Code represents the error status code (404, 403, 401, ...).inthashCode()GenericErrorid(String id)GenericErrormessage(String message)GenericErrorreason(String reason)GenericErrorrequest(String request)voidsetCode(Long code)voidsetDebug(String debug)voidsetDetails(Object details)voidsetError(String error)voidsetErrorDescription(String errorDescription)voidsetId(String id)voidsetMessage(String message)voidsetReason(String reason)voidsetRequest(String request)voidsetStatus(String status)voidsetStatusCode(Long statusCode)GenericErrorstatus(String status)GenericErrorstatusCode(Long statusCode)StringtoString()
-
Field Details
-
SERIALIZED_NAME_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEBUG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DETAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REASON
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUEST
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS_CODE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
GenericError
public GenericError()
-
-
Method Details
-
code
-
getCode
The status code- Returns:
- code
-
setCode
-
debug
-
getDebug
Debug contains debug information. This is usually not available and has to be enabled.- Returns:
- debug
-
setDebug
-
details
-
getDetails
Further error details- Returns:
- details
-
setDetails
-
error
-
getError
Name is the error name.- Returns:
- error
-
setError
-
errorDescription
-
getErrorDescription
Description contains further information on the nature of the error.- Returns:
- errorDescription
-
setErrorDescription
-
id
-
getId
The error ID Useful when trying to identify various errors in application logic.- Returns:
- id
-
setId
-
message
-
getMessage
Message contains the error message.- Returns:
- message
-
setMessage
-
reason
-
getReason
A human-readable reason for the error- Returns:
- reason
-
setReason
-
request
-
getRequest
The request ID The request ID is often exposed internally in order to trace errors across service architectures. This is often a UUID.- Returns:
- request
-
setRequest
-
status
-
getStatus
The status description- Returns:
- status
-
setStatus
-
statusCode
-
getStatusCode
Code represents the error status code (404, 403, 401, ...).- Returns:
- statusCode
-
setStatusCode
-
equals
-
hashCode
public int hashCode() -
toString
-