Class ClientConnectionRemotelyClosedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.qpid.protonj2.client.exceptions.ClientException
-
- org.apache.qpid.protonj2.client.exceptions.ClientIOException
-
- org.apache.qpid.protonj2.client.exceptions.ClientConnectionRemotelyClosedException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ClientConnectionRedirectedException
,ClientConnectionSecurityException
public class ClientConnectionRemotelyClosedException extends ClientIOException
Exception thrown when the remote peer actively closes theConnection
by sending and AMQPClose
frame or when the IO layer is disconnected due to some other reason such as a security error or transient network error.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientConnectionRemotelyClosedException(java.lang.String message)
ClientConnectionRemotelyClosedException(java.lang.String message, java.lang.Throwable cause)
ClientConnectionRemotelyClosedException(java.lang.String message, java.lang.Throwable cause, ErrorCondition condition)
ClientConnectionRemotelyClosedException(java.lang.String message, ErrorCondition condition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCondition
getErrorCondition()
-
-
-
Constructor Detail
-
ClientConnectionRemotelyClosedException
public ClientConnectionRemotelyClosedException(java.lang.String message)
-
ClientConnectionRemotelyClosedException
public ClientConnectionRemotelyClosedException(java.lang.String message, java.lang.Throwable cause)
-
ClientConnectionRemotelyClosedException
public ClientConnectionRemotelyClosedException(java.lang.String message, ErrorCondition condition)
-
ClientConnectionRemotelyClosedException
public ClientConnectionRemotelyClosedException(java.lang.String message, java.lang.Throwable cause, ErrorCondition condition)
-
-
Method Detail
-
getErrorCondition
public ErrorCondition getErrorCondition()
- Returns:
- the
ErrorCondition
that was provided by the remote to describe the cause of the close.
-
-