Package sh.ory.hydra.model
Class GenericError
- java.lang.Object
-
- sh.ory.hydra.model.GenericError
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-01-12T16:13:57.119092Z[GMT]") 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_DEBUGstatic StringSERIALIZED_NAME_ERRORstatic StringSERIALIZED_NAME_ERROR_DESCRIPTIONstatic StringSERIALIZED_NAME_STATUS_CODE
-
Constructor Summary
Constructors Constructor Description GenericError()
-
Method Summary
Modifier and Type Method Description GenericErrordebug(String debug)booleanequals(Object o)GenericErrorerror(String error)GenericErrorerrorDescription(String errorDescription)StringgetDebug()Debug contains debug information.StringgetError()Name is the error name.StringgetErrorDescription()Description contains further information on the nature of the error.LonggetStatusCode()Code represents the error status code (404, 403, 401, ...).inthashCode()voidsetDebug(String debug)voidsetError(String error)voidsetErrorDescription(String errorDescription)voidsetStatusCode(Long statusCode)GenericErrorstatusCode(Long statusCode)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_DEBUG
public static final String SERIALIZED_NAME_DEBUG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR
public static final String SERIALIZED_NAME_ERROR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR_DESCRIPTION
public static final String SERIALIZED_NAME_ERROR_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS_CODE
public static final String SERIALIZED_NAME_STATUS_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
error
public GenericError error(String error)
-
getError
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)
-
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)
-
-