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.TimeoutException
,PulsarClientException.TopicDoesNotExistException
,PulsarClientException.TopicTerminatedException
,PulsarClientException.TransactionConflictException
,PulsarClientException.UnsupportedAuthenticationException
Base type of exception thrown by Pulsar client.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Already closed exception thrown by Pulsar client.static class
Authentication exception thrown by Pulsar client.static class
Authorization exception thrown by Pulsar client.static class
Broker metadata exception thrown by Pulsar client.static class
Broker persistence exception thrown by Pulsar client.static class
Checksum exception thrown by Pulsar client.static class
Connect exception thrown by Pulsar client.static class
Consumer assign exception thrown by Pulsar client.static class
Consumer busy exception thrown by Pulsar client.static class
Crypto exception thrown by Pulsar client.static class
Getting authentication data exception thrown by Pulsar client.static class
Incompatible schema exception thrown by Pulsar client.static class
Invalid Configuration exception thrown by Pulsar client.static class
Invalid message exception thrown by Pulsar client.static class
Invalid Service URL exception thrown by Pulsar client.static class
Invalid topic name exception thrown by Pulsar client.static class
Lookup exception thrown by Pulsar client.static class
Memory buffer full error thrown by Pulsar client.static class
Consumer assign exception thrown by Pulsar client.static class
Not allowed exception thrown by Pulsar client.static class
Not connected exception thrown by Pulsar client.static class
Not Found exception thrown by Pulsar client.static class
Not supported exception thrown by Pulsar client.static class
Producer blocked quota exceeded error thrown by Pulsar client.static class
Producer blocked quota exceeded exception thrown by Pulsar client.static class
Producer busy exception thrown by Pulsar client.static class
Producer fenced exception thrown by Pulsar client.static class
Full producer queue error thrown by Pulsar client.static class
Timeout exception thrown by Pulsar client.static class
Too many requests exception thrown by Pulsar client.static class
Topic does not exist and cannot be created.static class
Topic terminated exception thrown by Pulsar client.static class
Consumer assign exception thrown by Pulsar client.static class
Unsupported authentication exception thrown by Pulsar client. -
Constructor Summary
ConstructorDescriptionConstructs anPulsarClientException
with the specified detail message.PulsarClientException
(String msg, long sequenceId) Constructs anPulsarClientException
with the specified detail message.PulsarClientException
(String msg, Throwable t) Constructs anPulsarClientException
with the specified cause.Constructs anPulsarClientException
with the specified cause.PulsarClientException
(Throwable t, long sequenceId) Constructs anPulsarClientException
with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionGet the collection of previous exceptions which have caused retries for this operation.static Collection<Throwable>
long
static boolean
static void
setPreviousExceptions
(Throwable t, Collection<Throwable> previous) void
setPreviousExceptions
(Collection<Throwable> previous) Add a list of previous exception which occurred for the same operation and have been retried.void
setSequenceId
(long sequenceId) toString()
static PulsarClientException
static Throwable
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
PulsarClientException
Constructs anPulsarClientException
with the specified detail message.- Parameters:
msg
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method)
-
PulsarClientException
Constructs anPulsarClientException
with 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 anPulsarClientException
with 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 anPulsarClientException
with 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 anPulsarClientException
with 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
-