Package com.mindee.parsing.v2
Class ErrorResponse
- java.lang.Object
-
- com.mindee.parsing.v2.ErrorResponse
-
public final class ErrorResponse extends Object
Error response detailing a problem. The format adheres to RFC 9457.
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse()ErrorResponse(String title, String detail, int status, String code, List<ErrorItem> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetCode()A machine-readable code specific to the occurrence of the problem.StringgetDetail()A human-readable explanation specific to the occurrence of the problem.List<ErrorItem>getErrors()The HTTP status code returned by the server.intgetStatus()The HTTP status code returned by the server.StringgetTitle()A short, human-readable summary of the problem.inthashCode()StringtoString()For prettier display.
-
-
-
Method Detail
-
getTitle
public String getTitle()
A short, human-readable summary of the problem.
-
getDetail
public String getDetail()
A human-readable explanation specific to the occurrence of the problem.
-
getStatus
public int getStatus()
The HTTP status code returned by the server.
-
getCode
public String getCode()
A machine-readable code specific to the occurrence of the problem.
-
-