Class MudWebException
Object
Throwable
Exception
RuntimeException
MudWebException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JsonException
This exception is automatically mapped to a nice WebApplicationException, using a
CustomWebExceptionMapper.
A "normal" exception, is the MudException.- Author:
- maartenl
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMudWebException(String name, String message, Response.Status status) Create a new MudWebException.MudWebException(String name, String friendlyMessage, String errormessage) Create a new MudWebException.MudWebException(String name, String friendlyMessage, String errormessage, Response.Status status) Create a new MudWebException.MudWebException(String name, String friendlyMessage, Throwable e, Response.Status status) Create a new MudWebException caused by a different exception.MudWebException(String name, Throwable e, Response.Status status) Create a new MudWebException caused by a different exception.MudWebException(Throwable e, Response.Status status) Create a new MudWebException caused by a different exception. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MudWebException
-
MudWebException
Create a new MudWebException.- Parameters:
name- the name of the player.friendlyMessage- the message to send to the player.errormessage- the error message to log in GlassFish (which can provide additional information too sensitive for the user).
-
MudWebException
public MudWebException(String name, String friendlyMessage, String errormessage, Response.Status status) Create a new MudWebException.- Parameters:
name- the name of the player.friendlyMessage- the message to send to the player.errormessage- the error message to log in GlassFish (which can provide additional information too sensitive for the user).status- the HTTP status code.
-
MudWebException
Create a new MudWebException caused by a different exception.- Parameters:
name- the name of the player.friendlyMessage- the message to send to the player.e- the underlying exception that was thrown.status- the HTTP status code.
-
MudWebException
-
MudWebException
Create a new MudWebException caused by a different exception.- Parameters:
e- the underlying exception that was thrown.status- the HTTP status code.
-