Class ErrorResponse
- java.lang.Object
-
- nl.b3p.tailormap.api.viewer.model.ErrorResponse
-
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.SpringCodegen") public class ErrorResponse extends Object implements SerializableGeneral server error response. Can be returned when something goes terribly wrong in the backend. **Note** that the diagnostic message may be of a general character to prevent disclosure of information about the backend. Error codes are defined in the [HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) standard, and can range from 400 to 599.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponsecode(Integer code)booleanequals(Object o)IntegergetCode()Get codeStringgetMessage()diagnostic messageinthashCode()ErrorResponsemessage(String message)voidsetCode(Integer code)voidsetMessage(String message)StringtoString()
-
-
-
Method Detail
-
code
public ErrorResponse code(Integer code)
-
getCode
public Integer getCode()
Get code- Returns:
- code
-
setCode
public void setCode(Integer code)
-
message
public ErrorResponse message(String message)
-
getMessage
public String getMessage()
diagnostic message- Returns:
- message
-
setMessage
public void setMessage(String message)
-
-