Enum Class ErrorMessages

java.lang.Object
java.lang.Enum<ErrorMessages>
madkit.i18n.ErrorMessages
All Implemented Interfaces:
Serializable, Comparable<ErrorMessages>, Constable

public enum ErrorMessages extends Enum<ErrorMessages>
Enum representing various error messages used in the application.
  • Enum Constant Details

    • FAILED

      public static final ErrorMessages FAILED
      Indicates a general failure.
    • C_NULL

      public static final ErrorMessages C_NULL
      Indicates that community is null.
    • G_NULL

      public static final ErrorMessages G_NULL
      Indicates that group is null.
    • R_NULL

      public static final ErrorMessages R_NULL
      Indicates that role is null.
    • CANT_LAUNCH

      public static final ErrorMessages CANT_LAUNCH
      Indicates that the agent cannot be launched.
    • CANT_CONNECT

      public static final ErrorMessages CANT_CONNECT
      Indicates that a connection cannot be established.
    • MUST_BE_LAUNCHED

      public static final ErrorMessages MUST_BE_LAUNCHED
      Indicates that the agent must be launched.
  • Method Details

    • values

      public static ErrorMessages[] 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 ErrorMessages 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
    • toString

      public String toString()
      Returns the name of the error message followed by a space.
      Overrides:
      toString in class Enum<ErrorMessages>
      Returns:
      the name of the error message followed by a space