Package org.projectnessie.error
Class NessieError
- java.lang.Object
-
- org.projectnessie.error.NessieError
-
public class NessieError extends Object
-
-
Constructor Summary
Constructors Constructor Description NessieError(int statusCode, String reason, String serverStackTrace, Exception processingException)Create Error.NessieError(String message, int status, String reason, String serverStackTrace)Deserialize error message from the server.NessieError(String message, int status, String reason, String serverStackTrace, Exception processingException)Create Error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ExceptiongetClientProcessingException()StringgetFullMessage()Get full error message.StringgetMessage()StringgetReason()StringgetServerStackTrace()intgetStatus()inthashCode()
-
-
-
Constructor Detail
-
NessieError
public NessieError(String message, int status, String reason, String serverStackTrace)
Deserialize error message from the server.- Parameters:
message- Error messagestatus- HTTP status codeserverStackTrace- exception, if present (can be empty ornull
-
NessieError
public NessieError(String message, int status, String reason, String serverStackTrace, Exception processingException)
Create Error.- Parameters:
message- Message of error.status- Status of error.reason- Reason for status.serverStackTrace- Server stack trace, if available.processingException- Any processing exceptions that happened on the client.
-
NessieError
public NessieError(int statusCode, String reason, String serverStackTrace, Exception processingException)Create Error.- Parameters:
statusCode- Status of error.reason- Reason for status.serverStackTrace- Server stack trace, if available.processingException- Any processing exceptions that happened on the client.
-
-
Method Detail
-
getMessage
public String getMessage()
-
getStatus
public int getStatus()
-
getReason
public String getReason()
-
getServerStackTrace
public String getServerStackTrace()
-
getClientProcessingException
public Exception getClientProcessingException()
-
getFullMessage
public String getFullMessage()
Get full error message.- Returns:
- Full error message.
-
-