Package akka.http.scaladsl.model.ws
Class PeerClosedConnectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- akka.http.scaladsl.model.ws.PeerClosedConnectionException
-
- All Implemented Interfaces:
PeerClosedConnectionException
,java.io.Serializable
public class PeerClosedConnectionException extends java.lang.RuntimeException implements PeerClosedConnectionException
A PeerClosedConnectionException will be reported to the WebSocket handler if the peer has closed the connection.closeCode
andcloseReason
contain close messages as reported by the peer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PeerClosedConnectionException(int closeCode, java.lang.String closeReason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
closeCode()
java.lang.String
closeReason()
-
-
-
Method Detail
-
closeCode
public int closeCode()
- Specified by:
closeCode
in interfacePeerClosedConnectionException
-
closeReason
public java.lang.String closeReason()
- Specified by:
closeReason
in interfacePeerClosedConnectionException
-
-