Class PulsarAdminException

    • Constructor Detail

      • PulsarAdminException

        public PulsarAdminException​(java.lang.Throwable t,
                                    java.lang.String httpError,
                                    int statusCode)
      • PulsarAdminException

        public PulsarAdminException​(java.lang.String message,
                                    java.lang.Throwable t,
                                    java.lang.String httpError,
                                    int statusCode)
      • PulsarAdminException

        public PulsarAdminException​(java.lang.Throwable t)
      • PulsarAdminException

        public PulsarAdminException​(java.lang.String message,
                                    java.lang.Throwable t)
      • PulsarAdminException

        public PulsarAdminException​(java.lang.String message)
    • Method Detail

      • getHttpError

        public java.lang.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 java.lang.Object
        Returns:
        a new PulsarAdminException
      • wrap

        public static PulsarAdminException wrap​(PulsarAdminException e)
        Clone the exception and grab the current stacktrace.
        Parameters:
        e - a PulsarAdminException
        Returns:
        a new PulsarAdminException, of the same class.