Class SockJsException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.web.socket.sockjs.SockJsException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SockJsMessageDeliveryException
,SockJsTransportFailureException
public class SockJsException extends NestedRuntimeException
Base class for exceptions raised while processing SockJS HTTP requests.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description SockJsException(String message, String sessionId, Throwable cause)
Constructor for SockJsException.SockJsException(String message, Throwable cause)
Constructor for SockJsException.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSockJsSessionId()
Return the SockJS session id.Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
SockJsException
public SockJsException(String message, Throwable cause)
Constructor for SockJsException.- Parameters:
message
- the exception messagecause
- the root cause
SockJsException
public SockJsException(String message, String sessionId, Throwable cause)
Constructor for SockJsException.- Parameters:
message
- the exception messagesessionId
- the SockJS session idcause
- the root cause
Method Detail
getSockJsSessionId
public String getSockJsSessionId()
Return the SockJS session id.