Enum Class ErrorDisplayState

All Implemented Interfaces:
Serializable, Comparable<ErrorDisplayState>, Constable

public enum ErrorDisplayState extends Enum<ErrorDisplayState>
The ErrorDisplayState enum represents different states for displaying error messages and provides methods to get the display string and find a state by its display string.

The following states are available:

  • POPUP_AND_LOG - Display error messages in a popup and log area
  • LOG_ONLY - Display error messages only in the log area
  • Enum Constant Details

    • LOG_ONLY

      public static final ErrorDisplayState LOG_ONLY
      Display error messages only in the log area
  • Method Details

    • values

      public static ErrorDisplayState[] 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 ErrorDisplayState 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
    • convertToDisplayString

      public String convertToDisplayString()
      Returns a user-friendly display string for the error display state.
      Returns:
      the display string
    • fromDisplayString

      public static ErrorDisplayState fromDisplayString(String displayString)
      Finds an ErrorDisplayState by its display string.
      Parameters:
      displayString - the display string to search for
      Returns:
      the corresponding ErrorDisplayState
      Throws:
      IllegalArgumentException - if no match is found