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,ErrorCodeAware
- Direct Known Subclasses:
NessieConflictException,NessieNotFoundException
A caught exception that is thrown on the server and caught in the client.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseNessieClientServerException(String message) Server-side constructor.protectedBaseNessieClientServerException(String message, Throwable cause) Server-side constructor.protectedClient-side constructor. -
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.projectnessie.error.ErrorCodeAware
getErrorDetails
-
Constructor Details
-
BaseNessieClientServerException
Server-side constructor.- Parameters:
message- Messagecause- The underlying cause.
-
BaseNessieClientServerException
Server-side constructor.- Parameters:
message- Message
-
BaseNessieClientServerException
Client-side constructor.- Parameters:
error- The deserialized error object from the server.
-
-
Method Details
-
getStatus
public int getStatus() -
getErrorCode
- Specified by:
getErrorCodein interfaceErrorCodeAware
-
getServerStackTrace
-