Package org.projectnessie.error
Class BaseNessieClientServerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.projectnessie.error.BaseNessieClientServerException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NessieConflictException,NessieNotFoundException
public class BaseNessieClientServerException extends IOException
A caught exception that is thrown on the server and caught in the client.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseNessieClientServerException(String message, int status, String reason)Create an exception.BaseNessieClientServerException(String message, int status, String reason, Throwable cause)Create an exception.BaseNessieClientServerException(NessieError error)Create an exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetReason()StringgetServerStackTrace()intgetStatus()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BaseNessieClientServerException
public BaseNessieClientServerException(String message, int status, String reason, Throwable cause)
Create an exception.- Parameters:
message- Messagestatus- HTTP statuscause- The underlying cause.
-
BaseNessieClientServerException
public BaseNessieClientServerException(String message, int status, String reason)
Create an exception.- Parameters:
message- Messagestatus- HTTP status
-
BaseNessieClientServerException
public BaseNessieClientServerException(NessieError error)
Create an exception.- Parameters:
error- The deserialized error object from the server.
-
-