Package org.apache.pulsar.client.api
Class PulsarClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.pulsar.client.api.PulsarClientException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PulsarClientException.AlreadyClosedException,PulsarClientException.AuthenticationException,PulsarClientException.AuthorizationException,PulsarClientException.BrokerMetadataException,PulsarClientException.BrokerPersistenceException,PulsarClientException.ChecksumException,PulsarClientException.ConnectException,PulsarClientException.ConsumerAssignException,PulsarClientException.ConsumerBusyException,PulsarClientException.CryptoException,PulsarClientException.GettingAuthenticationDataException,PulsarClientException.IncompatibleSchemaException,PulsarClientException.InvalidConfigurationException,PulsarClientException.InvalidMessageException,PulsarClientException.InvalidServiceURL,PulsarClientException.InvalidTopicNameException,PulsarClientException.LookupException,PulsarClientException.MemoryBufferIsFullError,PulsarClientException.MessageAcknowledgeException,PulsarClientException.NotAllowedException,PulsarClientException.NotConnectedException,PulsarClientException.NotFoundException,PulsarClientException.NotSupportedException,PulsarClientException.ProducerBlockedQuotaExceededError,PulsarClientException.ProducerBlockedQuotaExceededException,PulsarClientException.ProducerBusyException,PulsarClientException.ProducerFencedException,PulsarClientException.ProducerQueueIsFullError,PulsarClientException.SubscriptionNotFoundException,PulsarClientException.TimeoutException,PulsarClientException.TopicDoesNotExistException,PulsarClientException.TopicMigrationException,PulsarClientException.TopicTerminatedException,PulsarClientException.TransactionConflictException,PulsarClientException.TransactionHasOperationFailedException,PulsarClientException.UnsupportedAuthenticationException
Base type of exception thrown by Pulsar client.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAlready closed exception thrown by Pulsar client.static classAuthentication exception thrown by Pulsar client.static classAuthorization exception thrown by Pulsar client.static classBroker metadata exception thrown by Pulsar client.static classBroker persistence exception thrown by Pulsar client.static classChecksum exception thrown by Pulsar client.static classConnect exception thrown by Pulsar client.static classConsumer assign exception thrown by Pulsar client.static classConsumer busy exception thrown by Pulsar client.static classCrypto exception thrown by Pulsar client.static enum"supports_auth_refresh" was introduced at "2.6" and is no longer supported, so skip this enum.static classNot supported exception thrown by Pulsar client.static classGetting authentication data exception thrown by Pulsar client.static classIncompatible schema exception thrown by Pulsar client.static classInvalid Configuration exception thrown by Pulsar client.static classInvalid message exception thrown by Pulsar client.static classInvalid Service URL exception thrown by Pulsar client.static classInvalid topic name exception thrown by Pulsar client.static classLookup exception thrown by Pulsar client.static classMemory buffer full error thrown by Pulsar client.static classConsumer assign exception thrown by Pulsar client.static classNot allowed exception thrown by Pulsar client.static classNot connected exception thrown by Pulsar client.static classNot Found exception thrown by Pulsar client.static classNot supported exception thrown by Pulsar client.static classProducer blocked quota exceeded error thrown by Pulsar client.static classProducer blocked quota exceeded exception thrown by Pulsar client.static classProducer busy exception thrown by Pulsar client.static classProducer fenced exception thrown by Pulsar client.static classFull producer queue error thrown by Pulsar client.static classRelates to server-side errors: ServiceUnitNotReadyException, TopicFencedException and SubscriptionFencedException.static classNot found subscription that cannot be created.static classTimeout exception thrown by Pulsar client.static classToo many requests exception thrown by Pulsar client.static classTopic does not exist and cannot be created.static classTopicMigration exception thrown by Pulsar client.static classTopic terminated exception thrown by Pulsar client.static classConsumer assign exception thrown by Pulsar client.static classstatic classUnsupported authentication exception thrown by Pulsar client. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs anPulsarClientExceptionwith the specified detail message.PulsarClientException(String msg, long sequenceId) Constructs anPulsarClientExceptionwith the specified detail message.PulsarClientException(String msg, Throwable t) Constructs anPulsarClientExceptionwith the specified cause.Constructs anPulsarClientExceptionwith the specified cause.PulsarClientException(Throwable t, long sequenceId) Constructs anPulsarClientExceptionwith the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionGet the collection of previous exceptions which have caused retries for this operation.static Collection<Throwable>longstatic booleanstatic voidsetPreviousExceptions(Throwable t, Collection<Throwable> previous) voidsetPreviousExceptions(Collection<Throwable> previous) Add a list of previous exception which occurred for the same operation and have been retried.voidsetSequenceId(long sequenceId) toString()static PulsarClientExceptionstatic ThrowableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
PulsarClientException
Constructs anPulsarClientExceptionwith the specified detail message.- Parameters:
msg- The detail message (which is saved for later retrieval by theThrowable.getMessage()method)
-
PulsarClientException
Constructs anPulsarClientExceptionwith the specified detail message.- Parameters:
msg- The detail message (which is saved for later retrieval by theThrowable.getMessage()method)sequenceId- The sequenceId of the message
-
PulsarClientException
Constructs anPulsarClientExceptionwith the specified cause.- Parameters:
t- The cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
PulsarClientException
Constructs anPulsarClientExceptionwith the specified cause.- Parameters:
msg- The detail message (which is saved for later retrieval by theThrowable.getMessage()method)t- The cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
PulsarClientException
Constructs anPulsarClientExceptionwith the specified cause.- Parameters:
t- The cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)sequenceId- The sequenceId of the message
-
-
Method Details
-
setPreviousExceptions
Add a list of previous exception which occurred for the same operation and have been retried.- Parameters:
previous- A collection of throwables that triggered retries
-
getPreviousExceptions
Get the collection of previous exceptions which have caused retries for this operation.- Returns:
- a collection of exception, ordered as they occurred
-
toString
-
wrap
-
unwrap
-
getPreviousExceptions
-
setPreviousExceptions
-
getSequenceId
public long getSequenceId() -
setSequenceId
public void setSequenceId(long sequenceId) -
isRetriableError
-