public class AcpConnectionException extends AcpException
This exception is thrown for transport-level issues such as:
Example usage:
try {
client.initialize(request).block();
} catch (AcpConnectionException e) {
logger.error("Failed to connect to agent", e);
// Handle reconnection or notify user
}
| 构造器和说明 |
|---|
AcpConnectionException(java.lang.String message)
Constructs a new connection exception with the specified message.
|
AcpConnectionException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new connection exception with the specified message and cause.
|
AcpConnectionException(java.lang.Throwable cause)
Constructs a new connection exception with the specified cause.
|
public AcpConnectionException(java.lang.String message)
message - the detail messagepublic AcpConnectionException(java.lang.String message,
java.lang.Throwable cause)
message - the detail messagecause - the underlying causepublic AcpConnectionException(java.lang.Throwable cause)
cause - the underlying cause