Class UnprocessableEntityResponse
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.stackone.stackone_client_java.models.errors.async.UnprocessableEntityResponse
-
- All Implemented Interfaces:
java.io.Serializable
public class UnprocessableEntityResponse extends java.lang.RuntimeException- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUnprocessableEntityResponse.Builder
-
Constructor Summary
Constructors Constructor Description UnprocessableEntityResponse(double statusCode, java.lang.String message, java.time.OffsetDateTime timestamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnprocessableEntityResponse.Builderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetMessage()inthashCode()java.lang.Stringmessage()Error messagedoublestatusCode()HTTP status codejava.time.OffsetDateTimetimestamp()Timestamp when the error occurredjava.lang.StringtoString()UnprocessableEntityResponsewithMessage(java.lang.String message)Error messageUnprocessableEntityResponsewithStatusCode(double statusCode)HTTP status codeUnprocessableEntityResponsewithTimestamp(java.time.OffsetDateTime timestamp)Timestamp when the error occurred
-
-
-
Method Detail
-
statusCode
public double statusCode()
HTTP status code
-
message
public java.lang.String message()
Error message
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
timestamp
public java.time.OffsetDateTime timestamp()
Timestamp when the error occurred
-
builder
public static UnprocessableEntityResponse.Builder builder()
-
withStatusCode
public UnprocessableEntityResponse withStatusCode(double statusCode)
HTTP status code
-
withMessage
public UnprocessableEntityResponse withMessage(java.lang.String message)
Error message
-
withTimestamp
public UnprocessableEntityResponse withTimestamp(java.time.OffsetDateTime timestamp)
Timestamp when the error occurred
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-