public class JCSMPException
extends com.solacesystems.common.ChainedException
JCSMPException
subclass, depending on the context.
JCSMPException
JCSMPTransportException
- An appliance communication related error.
These exceptions can be raised after several retries, depending on the session
configuration.
When an application receives these exceptions from a JCSMPSession
,
the session becomes unusable.
JCSMPStateException
- Usually caused by an application or JCSMP
program logic error. Exceptions in this category are unrecoverable.
InvalidOperationException
- The operation is supported, but the
object is in wrong state.
StaleSessionException
- The operation failed because the object
is in the stale state. This occurs when a session has lost its connection
and couldn't recover it because the max reconnection attempts has been exceeded
(See reconnectRetries in JCSMPChannelProperties
).
ClosedFacilityException
- The operation failed because the object
was closed. This occurs when the object was explicitly closed, or closed
because the session associated with the object was closed.
InvalidPropertiesException
- An error in the supplied
JCSMPProperties
.OperationNotSupportedException
- An error that is usually
configuration related (such as calling addSubscription
in a
non-blocking mode while there is no Session event handler configured).JCSMPFatalErrorException
- An error usually related to a bug in JCSMP.JCSMPOperationException
- An error related to CSMP protocol.
Examples are the 4xx SMF response, and the non-OK response of CSMP.JCSMPErrorResponseException
- An error related to CSMP protocol. The application might
need to examine responseBody
to discover the cause.JCSMPRequestTimeoutException
- An error raised when a blocking request
operation times out.JCSMPLoginFailureException
- An error raised when a consumer or producer
fails to login to the appliance upon opening a control or data channel.
SubscriptionsOutOfSynchException
- The application's view of a
subscriber's subscriptions does not corresponding with what is on the appliance.InvalidMessageReceivedException
- A messaging format error.VersionNotSupportException
- The current appliance version is not
compatible with JCSMP.
Constructor and Description |
---|
JCSMPException(String message)
Constructs a
JCSMPException with the specified detailed
message. |
JCSMPException(String message,
Throwable cause)
Constructs a
JCSMPException with the specified detailed
message and nested exception. |
JCSMPException(String message,
Throwable cause,
String extraInfo)
Constructs a
JCSMPException with the specified detailed
message and nested exception. |
Modifier and Type | Method and Description |
---|---|
String |
getExtraInfo() |
void |
setExtraInfo(String extraInfo) |
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public JCSMPException(String message, Throwable cause)
JCSMPException
with the specified detailed
message and nested exception.message
- The detailed message.cause
- The nested exception.public JCSMPException(String message, Throwable cause, String extraInfo)
JCSMPException
with the specified detailed
message and nested exception.message
- The detailed message.cause
- The nested exception.extraInfo
- A string that contains more information about this exception.public JCSMPException(String message)
JCSMPException
with the specified detailed
message.message
- The detailed message.Copyright 2004-2024 Solace Corporation. All rights reserved.