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.closeCodeandcloseReasoncontain 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 intcloseCode()java.lang.StringcloseReason()
-
-
-
Method Detail
-
closeCode
public int closeCode()
- Specified by:
closeCodein interfacePeerClosedConnectionException
-
closeReason
public java.lang.String closeReason()
- Specified by:
closeReasonin interfacePeerClosedConnectionException
-
-