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 Details

  • Constructor Details

    • GenericError

      public GenericError()
  • Method Details

    • code

      public GenericError code​(Long code)
    • getCode

      @Nullable public Long getCode()
      The status code
      Returns:
      code
    • setCode

      public void setCode​(Long code)
    • debug

      public GenericError debug​(String debug)
    • getDebug

      @Nullable public String getDebug()
      Debug contains debug information. This is usually not available and has to be enabled.
      Returns:
      debug
    • setDebug

      public void setDebug​(String debug)
    • details

      public GenericError details​(Object details)
    • getDetails

      @Nullable public Object getDetails()
      Further error details
      Returns:
      details
    • setDetails

      public void setDetails​(Object details)
    • error

      public GenericError error​(String error)
    • getError

      @Nullable public String getError()
      Name is the error name.
      Returns:
      error
    • setError

      public void setError​(String error)
    • errorDescription

      public GenericError errorDescription​(String errorDescription)
    • getErrorDescription

      @Nullable public String getErrorDescription()
      Description contains further information on the nature of the error.
      Returns:
      errorDescription
    • setErrorDescription

      public void setErrorDescription​(String errorDescription)
    • id

      public GenericError id​(String id)
    • getId

      @Nullable public String getId()
      The error ID Useful when trying to identify various errors in application logic.
      Returns:
      id
    • setId

      public void setId​(String id)
    • message

      public GenericError message​(String message)
    • getMessage

      @Nonnull public String getMessage()
      Message contains the error message.
      Returns:
      message
    • setMessage

      public void setMessage​(String message)
    • reason

      public GenericError reason​(String reason)
    • getReason

      @Nullable public String getReason()
      A human-readable reason for the error
      Returns:
      reason
    • setReason

      public void setReason​(String reason)
    • request

      public GenericError request​(String request)
    • getRequest

      @Nullable public String 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

      public void setRequest​(String request)
    • status

      public GenericError status​(String status)
    • getStatus

      @Nullable public String getStatus()
      The status description
      Returns:
      status
    • setStatus

      public void setStatus​(String status)
    • statusCode

      public GenericError statusCode​(Long statusCode)
    • getStatusCode

      @Nullable public Long getStatusCode()
      Code represents the error status code (404, 403, 401, ...).
      Returns:
      statusCode
    • setStatusCode

      public void setStatusCode​(Long statusCode)
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object