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:
Serializable,ErrorCodeAware
- Direct Known Subclasses:
NessieBackendThrottledException,NessieBadRequestException,NessieForbiddenException
public class NessieRuntimeException extends RuntimeException implements ErrorCodeAware
Represents unchecked exceptions raised by Nessie API endpoints.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NessieRuntimeException(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
-
-
-
-
Constructor Detail
-
NessieRuntimeException
public NessieRuntimeException(NessieError error)
-
-
Method Detail
-
getError
public NessieError getError()
-
getErrorCode
public ErrorCode getErrorCode()
- Specified by:
getErrorCodein interfaceErrorCodeAware
-
-