Package sh.ory.model
Class GenericError
java.lang.Object
sh.ory.model.GenericError
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-04-19T11:31:27.587817519Z[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_IDstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_REASONstatic StringSERIALIZED_NAME_REQUESTstatic StringSERIALIZED_NAME_STATUS -
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(GenericErrorContent error)LonggetCode()The status codeStringgetDebug()Debug information This field is often not exposed to protect against leaking sensitive information.ObjectgetDetails()Further error detailsGenericErrorContentgetError()Get errorStringgetId()The error ID Useful when trying to identify various errors in application logic.StringgetMessage()Error message The error's 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 descriptioninthashCode()GenericErrorid(String id)GenericErrormessage(String message)GenericErrorreason(String reason)GenericErrorrequest(String request)voidsetCode(Long code)voidsetDebug(String debug)voidsetDetails(Object details)voidsetError(GenericErrorContent error)voidsetId(String id)voidsetMessage(String message)voidsetReason(String reason)voidsetRequest(String request)voidsetStatus(String status)GenericErrorstatus(String status)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_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
-
-
Constructor Details
-
GenericError
public GenericError()
-
-
Method Details
-
code
-
getCode
The status code- Returns:
- code
-
setCode
-
debug
-
getDebug
Debug information This field is often not exposed to protect against leaking sensitive information.- Returns:
- debug
-
setDebug
-
details
-
getDetails
Further error details- Returns:
- details
-
setDetails
-
error
-
getError
Get error- Returns:
- error
-
setError
-
id
-
getId
The error ID Useful when trying to identify various errors in application logic.- Returns:
- id
-
setId
-
message
-
getMessage
Error message The error's 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
-
equals
-
hashCode
public int hashCode() -
toString
-