Package dev.le_app.mcss_api_java
Enum Class Errors
- All Implemented Interfaces:
Serializable,Comparable<Errors>,Constable
List of possible errors of the API
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTask doesn't have an actionTask Deleted - CHANGE NAMENo Commands found for taskNo Commands given for taskTask time was invalidTask Deleted - DISABLECannot disable a timeless taskTask Deleted - ENABLECannot enable a timeless taskFilter errorTask Deleted - TIMINGCannot get interval of time taskInterval must be more than 0Cannot get interval for a timeless taskTask doesn't have a valid job typeTask details are invalidTask Deleted - JOBMethod not available for this job typeTask name contains special charsAPI doesn't have access to this serverTask has no timing informationNot FoundError code was not recognizedTask Deleted - REPEATCannot repeat a timeless taskTask Deleted - RUNTask is already deletedTask has been deletedTask Deleted - TIMINGCannot get time of interval taskCannot get time for a timeless taskUnauthorizedVersion not supported -
Method Summary
-
Enum Constant Details
-
UNAUTHORIZED
Unauthorized -
NOT_FOUND
Not Found -
VERSION_MISMATCH
Version not supported -
NOT_RECOGNIZED
Error code was not recognized -
NO_SERVER_ACCESS
API doesn't have access to this server -
ID_FILTER_ERROR
Filter error -
INVALID_TASK_DETAILS
Task details are invalid -
NAME_SPECIAL_CHAR
Task name contains special chars -
TASK_ALREADY_DELETED
Task is already deleted -
TASK_DELETED
Task has been deleted -
JOB_DELETED
Task Deleted - JOB -
ENABLE_DELETED
Task Deleted - ENABLE -
DISABLE_DELETED
Task Deleted - DISABLE -
REPEAT_DELETED
Task Deleted - REPEAT -
RUN_DELETED
Task Deleted - RUN -
CHANGE_NAME_DELETED
Task Deleted - CHANGE NAME -
INTERVAL_DELETED
Task Deleted - TIMING -
TIME_DELETED
Task Deleted - TIMING -
INVALID_JOB_TYPE
Task doesn't have a valid job type -
NO_TIMING_INFORMATION
Task has no timing information -
COULD_NOT_PARSE_TIME
Task time was invalid -
REPEAT_TIMELESS
Cannot repeat a timeless task -
TIME_TIMELESS
Cannot get time for a timeless task -
INTERVAL_TIMELESS
Cannot get interval for a timeless task -
ENABLE_TIMELESS
Cannot enable a timeless task -
DISABLE_TIMELESS
Cannot disable a timeless task -
TIME_INTERVAL
Cannot get time of interval task -
INTERVAL_GREATER_0
Interval must be more than 0 -
INTERVAL_FIXED_TIME
Cannot get interval of time task -
COMMANDS_NOT_FOUND
No Commands found for task -
COMMANDS_NOT_GIVEN
No Commands given for task -
METHOD_NOT_SUPPORTED
Method not available for this job type -
ACTION_NOT_FOUND
Task doesn't have an action
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getMessage
Gets the message of the error.- Returns:
- The message of the error.
-