Enum TaskPlannerCodes
- java.lang.Object
-
- java.lang.Enum<TaskPlannerCodes>
-
- com.inet.taskplanner.server.api.error.TaskPlannerCodes
-
- All Implemented Interfaces:
com.inet.error.ErrorCode
,java.io.Serializable
,java.lang.Comparable<TaskPlannerCodes>
public enum TaskPlannerCodes extends java.lang.Enum<TaskPlannerCodes> implements com.inet.error.ErrorCode
Errors codes for errors occurring when using theTaskPlanner
- Since:
- taskplanner 3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CannotSendEmail
FileCannotBeWritten
GenericExecutionError
NotTaskOwner
OldFilesCannotBeDeleted
PrinterNotExists
SeriesExecutionError
TaskDoesNotExist
UnknownUser
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCodeNumber()
static TaskPlannerCodes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TaskPlannerCodes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NotTaskOwner
public static final TaskPlannerCodes NotTaskOwner
-
GenericExecutionError
public static final TaskPlannerCodes GenericExecutionError
-
FileCannotBeWritten
public static final TaskPlannerCodes FileCannotBeWritten
-
PrinterNotExists
public static final TaskPlannerCodes PrinterNotExists
-
CannotSendEmail
public static final TaskPlannerCodes CannotSendEmail
-
SeriesExecutionError
public static final TaskPlannerCodes SeriesExecutionError
-
TaskDoesNotExist
public static final TaskPlannerCodes TaskDoesNotExist
-
OldFilesCannotBeDeleted
public static final TaskPlannerCodes OldFilesCannotBeDeleted
-
UnknownUser
public static final TaskPlannerCodes UnknownUser
-
-
Method Detail
-
values
public static TaskPlannerCodes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TaskPlannerCodes c : TaskPlannerCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskPlannerCodes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getErrorCodeNumber
public int getErrorCodeNumber()
- Specified by:
getErrorCodeNumber
in interfacecom.inet.error.ErrorCode
-
-