类 PulsarClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.pulsar.client.api.PulsarClientException
- 所有已实现的接口:
Serializable
- 直接已知子类:
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.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static 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 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 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. -
构造器概要
构造器构造器说明Constructs 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. -
方法概要
修饰符和类型方法说明Get 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 Throwable
-
构造器详细资料
-
PulsarClientException
Constructs anPulsarClientExceptionwith the specified detail message.- 参数:
msg- The detail message (which is saved for later retrieval by theThrowable.getMessage()method)
-
PulsarClientException
Constructs anPulsarClientExceptionwith the specified detail message.- 参数:
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.- 参数:
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.- 参数:
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.- 参数:
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
-
-
方法详细资料
-
setPreviousExceptions
Add a list of previous exception which occurred for the same operation and have been retried.- 参数:
previous- A collection of throwables that triggered retries
-
getPreviousExceptions
Get the collection of previous exceptions which have caused retries for this operation.- 返回:
- a collection of exception, ordered as they occurred
-
toString
-
wrap
-
unwrap
-
getPreviousExceptions
-
setPreviousExceptions
-
getSequenceId
public long getSequenceId() -
setSequenceId
public void setSequenceId(long sequenceId) -
isRetriableError
-