Enum Class Configuration.ErrorReporting

java.lang.Object
java.lang.Enum<Configuration.ErrorReporting>
eu.webtoolkit.jwt.Configuration.ErrorReporting
All Implemented Interfaces:
Serializable, Comparable<Configuration.ErrorReporting>, Constable
Enclosing class:
Configuration

public static enum Configuration.ErrorReporting extends Enum<Configuration.ErrorReporting>
An enumeration for the level of error reporting in case of client-side (JavaScript) errors.
  • Enum Constant Details

    • NoErrors

      public static final Configuration.ErrorReporting NoErrors
      The application silently dies, and this allows the use of standard debugging capabilities of the browser to diagnose the problem (convenient during development).
    • ErrorMessage

      public static final Configuration.ErrorReporting ErrorMessage
      The application dies with a message to the user indicating an internal error. This is the default behaviour.
    • ErrorMessageWithStack

      public static final Configuration.ErrorReporting ErrorMessageWithStack
      The application dies with a message and if possible a stack trace of the problem.
  • Method Details

    • values

      public static Configuration.ErrorReporting[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Configuration.ErrorReporting valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null