类 WebSocketTransportException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.agentscope.core.model.transport.websocket.WebSocketTransportException
所有已实现的接口:
Serializable

public class WebSocketTransportException extends RuntimeException
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

      public WebSocketTransportException(String message, Throwable cause, String url, String connectionState)
      Create a WebSocketTransportException.
      参数:
      message - Error message
      cause - Root cause exception
      url - WebSocket URL
      connectionState - 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 message
      cause - Root cause exception
      url - WebSocket URL
      connectionState - Connection state
      headers - Request headers (for debugging)
  • 方法详细资料

    • getUrl

      public String getUrl()
      Get the WebSocket URL.
      返回:
      WebSocket URL
    • getConnectionState

      public String getConnectionState()
      Get the connection state.
      返回:
      Connection state
    • getHeaders

      public Map<String,String> getHeaders()
      Get the request headers.
      返回:
      Request headers (immutable)
    • getMessage

      public String getMessage()
      覆盖:
      getMessage 在类中 Throwable