Class ClientResourceRemotelyClosedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.qpid.protonj2.client.exceptions.ClientException
-
- org.apache.qpid.protonj2.client.exceptions.ClientIllegalStateException
-
- org.apache.qpid.protonj2.client.exceptions.ClientResourceRemotelyClosedException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientLinkRemotelyClosedException,ClientSessionRemotelyClosedException
public class ClientResourceRemotelyClosedException extends ClientIllegalStateException
Root exception type for cases of remote closure or client created resources other than the ClientConnectionwhich will throw exceptions rooted from theClientConnectionRemotelyClosedExceptionto indicate a fatal connection level error that requires a new connection to be created.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientResourceRemotelyClosedException(String message)Creates a new resource remotely closed exception.ClientResourceRemotelyClosedException(String message, Throwable cause)Creates a new resource remotely closed exception.ClientResourceRemotelyClosedException(String message, Throwable cause, ErrorCondition condition)Creates a new resource remotely closed exception.ClientResourceRemotelyClosedException(String message, ErrorCondition condition)Creates a new resource remotely closed exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorConditiongetErrorCondition()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ClientResourceRemotelyClosedException
public ClientResourceRemotelyClosedException(String message)
Creates a new resource remotely closed exception.- Parameters:
message- The message that describes the reason for the remote closure.
-
ClientResourceRemotelyClosedException
public ClientResourceRemotelyClosedException(String message, Throwable cause)
Creates a new resource remotely closed exception.- Parameters:
message- The message that describes the reason for the remote closure.cause- An exception that further defines the remote close reason.
-
ClientResourceRemotelyClosedException
public ClientResourceRemotelyClosedException(String message, ErrorCondition condition)
Creates a new resource remotely closed exception.- Parameters:
message- The message that describes the reason for the remote closure.condition- AnErrorConditionthat provides additional information about the close reason.
-
ClientResourceRemotelyClosedException
public ClientResourceRemotelyClosedException(String message, Throwable cause, ErrorCondition condition)
Creates a new resource remotely closed exception.- Parameters:
message- The message that describes the reason for the remote closure.cause- An exception that further defines the remote close reason.condition- AnErrorConditionthat provides additional information about the close reason.
-
-
Method Detail
-
getErrorCondition
public ErrorCondition getErrorCondition()
- Returns:
- the
ErrorConditionthat was provided by the remote to describe the cause of the close.
-
-