类 WebSocketTransportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.agentscope.core.model.transport.websocket.WebSocketTransportException
- 所有已实现的接口:
Serializable
WebSocket transport layer exception.
Wraps underlying transport errors with connection context to help diagnose issues. This exception preserves the complete error chain while adding transport-specific context.
Context information includes:
- WebSocket URL
- Connection state (OPEN/CLOSED/CONNECTING)
- Request headers (for authentication/configuration debugging)
- 另请参阅:
-
构造器概要
构造器构造器说明WebSocketTransportException(String message, Throwable cause, String url, String connectionState) Create a WebSocketTransportException.WebSocketTransportException(String message, Throwable cause, String url, String connectionState, Map<String, String> headers) Create a WebSocketTransportException with headers. -
方法概要
-
构造器详细资料
-
WebSocketTransportException
public WebSocketTransportException(String message, Throwable cause, String url, String connectionState) Create a WebSocketTransportException.- 参数:
message- Error messagecause- Root cause exceptionurl- WebSocket URLconnectionState- Connection state (OPEN/CLOSED/CONNECTING)
-
WebSocketTransportException
public WebSocketTransportException(String message, Throwable cause, String url, String connectionState, Map<String, String> headers) Create a WebSocketTransportException with headers.- 参数:
message- Error messagecause- Root cause exceptionurl- WebSocket URLconnectionState- Connection stateheaders- Request headers (for debugging)
-
-
方法详细资料
-
getUrl
Get the WebSocket URL.- 返回:
- WebSocket URL
-
getConnectionState
Get the connection state.- 返回:
- Connection state
-
getHeaders
Get the request headers.- 返回:
- Request headers (immutable)
-
getMessage
- 覆盖:
getMessage在类中Throwable
-