Enum Class Errors

java.lang.Object
java.lang.Enum<Errors>
dev.le_app.mcss_api_java.Errors
All Implemented Interfaces:
Serializable, Comparable<Errors>, Constable

public enum Errors extends Enum<Errors>
List of possible errors of the API
  • Enum Constant Details

    • UNAUTHORIZED

      public static final Errors UNAUTHORIZED
      Unauthorized
    • NOT_FOUND

      public static final Errors NOT_FOUND
      Not Found
    • VERSION_MISMATCH

      public static final Errors VERSION_MISMATCH
      Version not supported
    • NOT_RECOGNIZED

      public static final Errors NOT_RECOGNIZED
      Error code was not recognized
    • NO_SERVER_ACCESS

      public static final Errors NO_SERVER_ACCESS
      API doesn't have access to this server
    • ID_FILTER_ERROR

      public static final Errors ID_FILTER_ERROR
      Filter error
    • INVALID_TASK_DETAILS

      public static final Errors INVALID_TASK_DETAILS
      Task details are invalid
    • NAME_SPECIAL_CHAR

      public static final Errors NAME_SPECIAL_CHAR
      Task name contains special chars
    • TASK_ALREADY_DELETED

      public static final Errors TASK_ALREADY_DELETED
      Task is already deleted
    • TASK_DELETED

      public static final Errors TASK_DELETED
      Task has been deleted
    • JOB_DELETED

      public static final Errors JOB_DELETED
      Task Deleted - JOB
    • ENABLE_DELETED

      public static final Errors ENABLE_DELETED
      Task Deleted - ENABLE
    • DISABLE_DELETED

      public static final Errors DISABLE_DELETED
      Task Deleted - DISABLE
    • REPEAT_DELETED

      public static final Errors REPEAT_DELETED
      Task Deleted - REPEAT
    • RUN_DELETED

      public static final Errors RUN_DELETED
      Task Deleted - RUN
    • CHANGE_NAME_DELETED

      public static final Errors CHANGE_NAME_DELETED
      Task Deleted - CHANGE NAME
    • INTERVAL_DELETED

      public static final Errors INTERVAL_DELETED
      Task Deleted - TIMING
    • TIME_DELETED

      public static final Errors TIME_DELETED
      Task Deleted - TIMING
    • INVALID_JOB_TYPE

      public static final Errors INVALID_JOB_TYPE
      Task doesn't have a valid job type
    • NO_TIMING_INFORMATION

      public static final Errors NO_TIMING_INFORMATION
      Task has no timing information
    • COULD_NOT_PARSE_TIME

      public static final Errors COULD_NOT_PARSE_TIME
      Task time was invalid
    • REPEAT_TIMELESS

      public static final Errors REPEAT_TIMELESS
      Cannot repeat a timeless task
    • TIME_TIMELESS

      public static final Errors TIME_TIMELESS
      Cannot get time for a timeless task
    • INTERVAL_TIMELESS

      public static final Errors INTERVAL_TIMELESS
      Cannot get interval for a timeless task
    • ENABLE_TIMELESS

      public static final Errors ENABLE_TIMELESS
      Cannot enable a timeless task
    • DISABLE_TIMELESS

      public static final Errors DISABLE_TIMELESS
      Cannot disable a timeless task
    • TIME_INTERVAL

      public static final Errors TIME_INTERVAL
      Cannot get time of interval task
    • INTERVAL_GREATER_0

      public static final Errors INTERVAL_GREATER_0
      Interval must be more than 0
    • INTERVAL_FIXED_TIME

      public static final Errors INTERVAL_FIXED_TIME
      Cannot get interval of time task
    • COMMANDS_NOT_FOUND

      public static final Errors COMMANDS_NOT_FOUND
      No Commands found for task
    • COMMANDS_NOT_GIVEN

      public static final Errors COMMANDS_NOT_GIVEN
      No Commands given for task
    • METHOD_NOT_SUPPORTED

      public static final Errors METHOD_NOT_SUPPORTED
      Method not available for this job type
    • ACTION_NOT_FOUND

      public static final Errors ACTION_NOT_FOUND
      Task doesn't have an action
  • Method Details

    • values

      public static Errors[] 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 Errors 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
    • getMessage

      public String getMessage()
      Gets the message of the error.
      Returns:
      The message of the error.