- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnsupportedProtocolException
Thrown to indicate an error while processing a WebSocket exchange.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a WebSocket exception with default statusInternal Server Error (500)
.WebSocketException
(int statusCode) Creates a WebSocket exception with specified HTTP status code.WebSocketException
(int statusCode, String message) Creates a WebSocket exception with specified HTTP status code and message.WebSocketException
(int statusCode, String message, Throwable cause) Creates a WebSocket exception with specified HTTP status code, message and cause.WebSocketException
(int statusCode, Throwable cause) Creates a WebSocket exception with specified HTTP status code and cause.WebSocketException
(Status status) Creates a WebSocket exception with specified HTTP status.WebSocketException
(Status status, String message) Creates a WebSocket exception with specified HTTP status and message.WebSocketException
(Status status, String message, Throwable cause) Creates a WebSocket exception with specified HTTP status, message and cause.WebSocketException
(Status status, Throwable cause) Creates a WebSocket exception with specified HTTP status and cause.WebSocketException
(String message) Creates a WebSocket exception with default statusInternal Server Error (500)
and specified message.WebSocketException
(String message, Throwable cause) Creates a WebSocket exception with default statusInternal Server Error (500)
, specified message and causeWebSocketException
(Throwable cause) Creates a WebSocket exception with default statusInternal Server Error (500)
and specified cause. -
Method Summary
Methods inherited from class io.inverno.mod.http.base.HttpException
getStatus, getStatusCategory, getStatusCode, getStatusReasonPhrase, wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WebSocketException
public WebSocketException()Creates a WebSocket exception with default status
Internal Server Error (500)
. -
WebSocketException
Creates a WebSocket exception with default status
Internal Server Error (500)
and specified message.- Parameters:
message
- a message
-
WebSocketException
Creates a WebSocket exception with default status
Internal Server Error (500)
and specified cause.- Parameters:
cause
- a cause
-
WebSocketException
Creates a WebSocket exception with default status
Internal Server Error (500)
, specified message and cause- Parameters:
message
- a messagecause
- a cause
-
WebSocketException
Creates a WebSocket exception with specified HTTP status code.
- Parameters:
statusCode
- a HTTP status code- Throws:
IllegalArgumentException
- if the specified status doesn't correspond to a known HTTP status
-
WebSocketException
Creates a WebSocket exception with specified HTTP status code and message.
- Parameters:
statusCode
- a HTTP status codemessage
- a message- Throws:
IllegalArgumentException
- if the specified status doesn't correspond to a known HTTP status
-
WebSocketException
Creates a WebSocket exception with specified HTTP status code and cause.
- Parameters:
statusCode
- a HTTP status codecause
- a cause- Throws:
IllegalArgumentException
- if the specified status doesn't correspond to a known HTTP status
-
WebSocketException
public WebSocketException(int statusCode, String message, Throwable cause) throws IllegalArgumentException Creates a WebSocket exception with specified HTTP status code, message and cause.
- Parameters:
statusCode
- a HTTP status codemessage
- a messagecause
- a cause- Throws:
IllegalArgumentException
- if the specified status doesn't correspond to a known HTTP status
-
WebSocketException
Creates a WebSocket exception with specified HTTP status.
- Parameters:
status
- a HTTP status
-
WebSocketException
Creates a WebSocket exception with specified HTTP status and message.
- Parameters:
status
- a HTTP statusmessage
- a message
-
WebSocketException
Creates a WebSocket exception with specified HTTP status and cause.
- Parameters:
status
- a HTTP statuscause
- a cause
-
WebSocketException
Creates a WebSocket exception with specified HTTP status, message and cause.
- Parameters:
status
- a HTTP statusmessage
- a messagecause
- a cause
-