Package org.apache.pulsar.client.admin
Class PulsarAdminException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.pulsar.client.admin.PulsarAdminException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PulsarAdminException.ConflictException
,PulsarAdminException.ConnectException
,PulsarAdminException.GettingAuthenticationDataException
,PulsarAdminException.HttpErrorException
,PulsarAdminException.NotAllowedException
,PulsarAdminException.NotAuthorizedException
,PulsarAdminException.NotFoundException
,PulsarAdminException.PreconditionFailedException
,PulsarAdminException.ServerSideErrorException
,PulsarAdminException.TimeoutException
Pulsar admin exceptions.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Conflict Exception.static class
Connect Exception.static class
Getting Authentication Data Exception.static class
Http Error Exception.static class
Not Allowed Exception.static class
Not Authorized Exception.static class
Not Found Exception.static class
Precondition Failed Exception.static class
Server Side Error Exception.static class
Timeout Exception. -
Constructor Summary
ConstructorDescriptionPulsarAdminException
(String message) PulsarAdminException
(String message, Throwable t) PulsarAdminException
(String message, Throwable t, String httpError, int statusCode) PulsarAdminException
(Throwable t, String httpError, int statusCode) -
Method Summary
Modifier and TypeMethodDescriptionprotected PulsarAdminException
clone()
This method is meant to be overriden by all subclasses.int
static PulsarAdminException
Clone the exception and grab the current stacktrace.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PulsarAdminException
-
PulsarAdminException
-
PulsarAdminException
-
PulsarAdminException
-
PulsarAdminException
-
-
Method Details
-
getHttpError
-
getStatusCode
public int getStatusCode() -
clone
This method is meant to be overriden by all subclasses. We cannot make it 'abstract' because it would be a breaking change in the public API. -
wrap
Clone the exception and grab the current stacktrace.- Parameters:
e
- a PulsarAdminException- Returns:
- a new PulsarAdminException, of the same class.
-