Class MudWebException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JsonException

public class MudWebException extends RuntimeException
This exception is automatically mapped to a nice WebApplicationException, using a CustomWebExceptionMapper. A "normal" exception, is the MudException.
Author:
maartenl
See Also:
  • Constructor Details

    • MudWebException

      public MudWebException(String name, String message, Response.Status status)
      Create a new MudWebException.
      Parameters:
      name - the name of the player.
      message - the message to send to the player.
      status - the HTTP status code.
    • MudWebException

      public MudWebException(String name, String friendlyMessage, String errormessage)
      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

      public MudWebException(String name, String friendlyMessage, Throwable e, Response.Status status)
      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

      public MudWebException(String name, Throwable e, Response.Status status)
      Create a new MudWebException caused by a different exception.
      Parameters:
      name - the name of the player.
      e - the underlying exception that was thrown.
      status - the HTTP status code.
    • MudWebException

      public MudWebException(Throwable e, Response.Status status)
      Create a new MudWebException caused by a different exception.
      Parameters:
      e - the underlying exception that was thrown.
      status - the HTTP status code.