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:
- Serializable
- Direct Known Subclasses:
- ClientConnectionRedirectedException,- ClientConnectionSecurityException
Exception thrown when the remote peer actively closes the 
Connection by sending
 and AMQP Close frame or when the IO layer is disconnected due to some other
 reason such as a security error or transient network error.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new connection remotely closed exception.ClientConnectionRemotelyClosedException(String message, Throwable cause) Creates a new connection remotely closed exception.ClientConnectionRemotelyClosedException(String message, Throwable cause, ErrorCondition condition) Creates a new connection remotely closed exception.ClientConnectionRemotelyClosedException(String message, ErrorCondition condition) Creates a new connection remotely closed exception.
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ClientConnectionRemotelyClosedExceptionCreates a new connection remotely closed exception.- Parameters:
- message- The message that describes the reason for the remote closure.
 
- 
ClientConnectionRemotelyClosedExceptionCreates a new connection 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.
 
- 
ClientConnectionRemotelyClosedExceptionCreates a new connection remotely closed exception.- Parameters:
- message- The message that describes the reason for the remote closure.
- condition- An- ErrorConditionthat provides additional information about the close reason.
 
- 
ClientConnectionRemotelyClosedExceptionpublic ClientConnectionRemotelyClosedException(String message, Throwable cause, ErrorCondition condition) Creates a new connection 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- An- ErrorConditionthat provides additional information about the close reason.
 
 
- 
- 
Method Details- 
getErrorCondition- Returns:
- the ErrorConditionthat was provided by the remote to describe the cause of the close.
 
 
-