Class ClientException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.qpid.protonj2.client.exceptions.ClientException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientIllegalStateException, ClientIOException, ClientMessageFormatViolationException, ClientOperationTimedOutException

public class ClientException extends Exception
Represents a non-fatal exception that occurs from a Client Connection or one of its resources. These error types can typically be recovered from without a full tear down and rebuild of the connection. One example might be a failure to commit a transaction due to a forced roll back on the remote side of the connection.
See Also:
  • Constructor Details

    • ClientException

      public ClientException(String message)
      Creates a new client exception.
      Parameters:
      message - The message that describes the reason for the error.
    • ClientException

      public ClientException(String message, Throwable cause)
      Creates a new client exception.
      Parameters:
      message - The message that describes the reason for the error.
      cause - An exception that further defines the reason for the error.