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:
java.io.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
@Public @Stable public class PulsarClientException extends java.io.IOException
Base type of exception thrown by Pulsar client.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PulsarClientException.AlreadyClosedException
Already closed exception thrown by Pulsar client.static class
PulsarClientException.AuthenticationException
Authentication exception thrown by Pulsar client.static class
PulsarClientException.AuthorizationException
Authorization exception thrown by Pulsar client.static class
PulsarClientException.BrokerMetadataException
Broker metadata exception thrown by Pulsar client.static class
PulsarClientException.BrokerPersistenceException
Broker persistence exception thrown by Pulsar client.static class
PulsarClientException.ChecksumException
Checksum exception thrown by Pulsar client.static class
PulsarClientException.ConnectException
Connect exception thrown by Pulsar client.static class
PulsarClientException.ConsumerAssignException
Consumer assign exception thrown by Pulsar client.static class
PulsarClientException.ConsumerBusyException
Consumer busy exception thrown by Pulsar client.static class
PulsarClientException.CryptoException
Crypto exception thrown by Pulsar client.static class
PulsarClientException.GettingAuthenticationDataException
Getting authentication data exception thrown by Pulsar client.static class
PulsarClientException.IncompatibleSchemaException
Incompatible schema exception thrown by Pulsar client.static class
PulsarClientException.InvalidConfigurationException
Invalid Configuration exception thrown by Pulsar client.static class
PulsarClientException.InvalidMessageException
Invalid message exception thrown by Pulsar client.static class
PulsarClientException.InvalidServiceURL
Invalid Service URL exception thrown by Pulsar client.static class
PulsarClientException.InvalidTopicNameException
Invalid topic name exception thrown by Pulsar client.static class
PulsarClientException.LookupException
Lookup exception thrown by Pulsar client.static class
PulsarClientException.MemoryBufferIsFullError
Memory buffer full error thrown by Pulsar client.static class
PulsarClientException.MessageAcknowledgeException
Consumer assign exception thrown by Pulsar client.static class
PulsarClientException.NotAllowedException
Not allowed exception thrown by Pulsar client.static class
PulsarClientException.NotConnectedException
Not connected exception thrown by Pulsar client.static class
PulsarClientException.NotFoundException
Not Found exception thrown by Pulsar client.static class
PulsarClientException.NotSupportedException
Not supported exception thrown by Pulsar client.static class
PulsarClientException.ProducerBlockedQuotaExceededError
Producer blocked quota exceeded error thrown by Pulsar client.static class
PulsarClientException.ProducerBlockedQuotaExceededException
Producer blocked quota exceeded exception thrown by Pulsar client.static class
PulsarClientException.ProducerBusyException
Producer busy exception thrown by Pulsar client.static class
PulsarClientException.ProducerFencedException
Producer fenced exception thrown by Pulsar client.static class
PulsarClientException.ProducerQueueIsFullError
Full producer queue error thrown by Pulsar client.static class
PulsarClientException.TimeoutException
Timeout exception thrown by Pulsar client.static class
PulsarClientException.TooManyRequestsException
Too many requests exception thrown by Pulsar client.static class
PulsarClientException.TopicDoesNotExistException
Topic does not exist and cannot be created.static class
PulsarClientException.TopicTerminatedException
Topic terminated exception thrown by Pulsar client.static class
PulsarClientException.TransactionConflictException
Consumer assign exception thrown by Pulsar client.static class
PulsarClientException.UnsupportedAuthenticationException
Unsupported authentication exception thrown by Pulsar client.
-
Constructor Summary
Constructors Constructor Description PulsarClientException(java.lang.String msg)
Constructs anPulsarClientException
with the specified detail message.PulsarClientException(java.lang.String msg, long sequenceId)
Constructs anPulsarClientException
with the specified detail message.PulsarClientException(java.lang.String msg, java.lang.Throwable t)
Constructs anPulsarClientException
with the specified cause.PulsarClientException(java.lang.Throwable t)
Constructs anPulsarClientException
with the specified cause.PulsarClientException(java.lang.Throwable t, long sequenceId)
Constructs anPulsarClientException
with the specified cause.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSequenceId()
static boolean
isRetriableError(java.lang.Throwable t)
void
setSequenceId(long sequenceId)
static PulsarClientException
unwrap(java.lang.Throwable t)
static java.lang.Throwable
wrap(java.lang.Throwable t, java.lang.String msg)
-
-
-
Constructor Detail
-
PulsarClientException
public PulsarClientException(java.lang.String msg)
Constructs anPulsarClientException
with the specified detail message.- Parameters:
msg
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method)
-
PulsarClientException
public PulsarClientException(java.lang.String msg, long sequenceId)
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
public PulsarClientException(java.lang.Throwable t)
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
public PulsarClientException(java.lang.String msg, java.lang.Throwable t)
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
public PulsarClientException(java.lang.Throwable t, long sequenceId)
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 Detail
-
wrap
public static java.lang.Throwable wrap(java.lang.Throwable t, java.lang.String msg)
-
unwrap
public static PulsarClientException unwrap(java.lang.Throwable t)
-
getSequenceId
public long getSequenceId()
-
setSequenceId
public void setSequenceId(long sequenceId)
-
isRetriableError
public static boolean isRetriableError(java.lang.Throwable t)
-
-