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:
java.io.Serializable,ErrorCodeAware
- Direct Known Subclasses:
NessieConflictException,NessieNotFoundException
public abstract class BaseNessieClientServerException extends java.io.IOException implements ErrorCodeAware
A caught exception that is thrown on the server and caught in the client.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseNessieClientServerException(java.lang.String message)Server-side constructor.protectedBaseNessieClientServerException(java.lang.String message, java.lang.Throwable cause)Server-side constructor.protectedBaseNessieClientServerException(NessieError error)Client-side constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodegetErrorCode()java.lang.StringgetServerStackTrace()intgetStatus()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.projectnessie.error.ErrorCodeAware
getErrorDetails
-
-
-
-
Constructor Detail
-
BaseNessieClientServerException
protected BaseNessieClientServerException(java.lang.String message, java.lang.Throwable cause)Server-side constructor.- Parameters:
message- Messagecause- The underlying cause.
-
BaseNessieClientServerException
protected BaseNessieClientServerException(java.lang.String message)
Server-side constructor.- Parameters:
message- Message
-
BaseNessieClientServerException
protected BaseNessieClientServerException(NessieError error)
Client-side constructor.- Parameters:
error- The deserialized error object from the server.
-
-
Method Detail
-
getStatus
public int getStatus()
-
getErrorCode
public ErrorCode getErrorCode()
- Specified by:
getErrorCodein interfaceErrorCodeAware
-
getServerStackTrace
public java.lang.String getServerStackTrace()
-
-