Enum Configuration.ErrorReporting

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

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

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    ErrorMessage
    The application dies with a message to the user indicating an internal error.
    ErrorMessageWithStack
    The application dies with a message and if possible a stack trace of the problem.
    NoErrors
    The application silently dies, and this allows the use of standard debugging capabilities of the browser to diagnose the problem (convenient during development).
  • Method Summary

    Modifier and Type Method Description
    static Configuration.ErrorReporting valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static Configuration.ErrorReporting[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Configuration.ErrorReporting valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null