Package com.turtlequeue
Class TqClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.turtlequeue.TqClientException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TqClientException.AlreadyClosedException,TqClientException.AuthenticationException,TqClientException.AuthorizationException,TqClientException.BrokerMetadataException,TqClientException.BrokerPersistenceException,TqClientException.ChecksumException,TqClientException.ConnectException,TqClientException.ConsumerAssignException,TqClientException.ConsumerBusyException,TqClientException.CryptoException,TqClientException.GettingAuthenticationDataException,TqClientException.IncompatibleSchemaException,TqClientException.InvalidConfigurationException,TqClientException.InvalidMessageException,TqClientException.InvalidServiceURL,TqClientException.InvalidTopicNameException,TqClientException.LookupException,TqClientException.MessageAcknowledgeException,TqClientException.NotAllowedException,TqClientException.NotConnectedException,TqClientException.NotFoundException,TqClientException.NotSupportedException,TqClientException.ProducerBlockedQuotaExceededError,TqClientException.ProducerBlockedQuotaExceededException,TqClientException.ProducerBusyException,TqClientException.ProducerQueueIsFullError,TqClientException.TimeoutException,TqClientException.TopicDoesNotExistException,TqClientException.TopicTerminatedException,TqClientException.TransactionConflictException,TqClientException.UnsupportedAuthenticationException
public class TqClientException extends IOException
Base type of exception for the Turtlequeue SDK. Carries additional data- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description TqClientException(com.turtlequeue.sdk.api.proto.Tq.ReplyError err)TqClientException(com.turtlequeue.sdk.api.proto.Tq.ReplyError err, Throwable t)TqClientException(String msg)TqClientException(String msg, Throwable t)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getData()StringgetDomain()StringgetReason()longgetSequenceId()static booleanisRetriableError(Throwable t)protected static TqClientExceptionmakeTqExceptionFromReplyError(com.turtlequeue.sdk.api.proto.Tq.ReplyError err)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getSequenceId
public long getSequenceId()
-
getDomain
public String getDomain()
-
getReason
public String getReason()
-
makeTqExceptionFromReplyError
protected static TqClientException makeTqExceptionFromReplyError(com.turtlequeue.sdk.api.proto.Tq.ReplyError err)
-
isRetriableError
public static boolean isRetriableError(Throwable t)
-
-