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

public class PulsarAdminException extends Exception
Pulsar admin exceptions.
See Also:
  • Constructor Details

    • PulsarAdminException

      public PulsarAdminException(Throwable t, String httpError, int statusCode)
    • PulsarAdminException

      public PulsarAdminException(String message, Throwable t, String httpError, int statusCode)
    • PulsarAdminException

      public PulsarAdminException(Throwable t)
    • PulsarAdminException

      public PulsarAdminException(String message, Throwable t)
    • PulsarAdminException

      public PulsarAdminException(String message)
  • Method Details

    • getHttpError

      public String getHttpError()
    • getStatusCode

      public int getStatusCode()
    • clone

      protected PulsarAdminException 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.
      Overrides:
      clone in class Object
      Returns:
      a new PulsarAdminException
    • wrap

      Clone the exception and grab the current stacktrace.
      Parameters:
      e - a PulsarAdminException
      Returns:
      a new PulsarAdminException, of the same class.