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
Nested ClassesModifier and TypeClassDescriptionstatic classConflict Exception.static classConnect Exception.static classGetting Authentication Data Exception.static classHttp Error Exception.static classNot Allowed Exception.static classNot Authorized Exception.static classNot Found Exception.static classPrecondition Failed Exception.static classServer Side Error Exception.static classTimeout Exception. -
Constructor Summary
ConstructorsConstructorDescriptionPulsarAdminException(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 PulsarAdminExceptionclone()This method is meant to be overriden by all subclasses.intstatic PulsarAdminExceptionClone 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.
-