Package org.projectnessie.client.rest
Class NessieServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.projectnessie.client.rest.NessieServiceException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NessieInternalServerException,NessieNotAuthorizedException
public class NessieServiceException extends RuntimeException
A runtime exception that represents REST API errors that are beyond Nessie's control. For example, an HTTP 404 (Not Found) error in case of a mistake in the base Nessie URI will be reported as aNessieServiceException.Errors raised by Nessie Services will be represented either by a
BaseNessieClientServerExceptionor by aNessieRuntimeException.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NessieServiceException(NessieError error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NessieErrorgetError()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NessieServiceException
public NessieServiceException(NessieError error)
-
-
Method Detail
-
getError
public NessieError getError()
-
-