Enum Class ExceptionMessage

java.lang.Object
java.lang.Enum<ExceptionMessage>
cielsachen.mco1.helper.ExceptionMessage
All Implemented Interfaces:
Serializable, Comparable<ExceptionMessage>, Constable

public enum ExceptionMessage extends Enum<ExceptionMessage>
  • Enum Constant Details

    • INVALID_BOOLEAN_INPUT

      public static final ExceptionMessage INVALID_BOOLEAN_INPUT
    • INVALID_CHARACTER_CHOICE

      public static final ExceptionMessage INVALID_CHARACTER_CHOICE
    • INVALID_FLOAT_INPUT

      public static final ExceptionMessage INVALID_FLOAT_INPUT
    • INVALID_INTEGER_CHOICE

      public static final ExceptionMessage INVALID_INTEGER_CHOICE
    • INVALID_INTEGER_INPUT

      public static final ExceptionMessage INVALID_INTEGER_INPUT
  • Field Details

    • message

      public final String message
  • Method Details

    • values

      public static ExceptionMessage[] 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 ExceptionMessage 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
    • printCustom

      public static void printCustom(String message)
    • print

      public void print()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ExceptionMessage>