Package org.projectnessie.error
Class NessieRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.projectnessie.error.NessieRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable,ErrorCodeAware
- Direct Known Subclasses:
NessieBackendThrottledException,NessieBadRequestException,NessieForbiddenException,NessieUnavailableException,NessieUnsupportedMediaTypeException
public abstract class NessieRuntimeException extends java.lang.RuntimeException implements ErrorCodeAware
Represents unchecked exceptions raised by Nessie API endpoints.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNessieRuntimeException(NessieError error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NessieErrorgetError()ErrorCodegetErrorCode()-
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
-
NessieRuntimeException
protected NessieRuntimeException(NessieError error)
-
-
Method Detail
-
getError
public NessieError getError()
-
getErrorCode
public ErrorCode getErrorCode()
- Specified by:
getErrorCodein interfaceErrorCodeAware
-
-