public enum JobDSLMessage extends java.lang.Enum<JobDSLMessage>
When a message is formatted, it will have this kind of form
XD105E: (pos 34): Expected an argument value but was ' 'The prefix captures the code and the error kind, whilst the position is included if it is known.
Modifier and Type | Class and Description |
---|---|
static class |
JobDSLMessage.Kind |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatMessage(int pos,
java.lang.Object... inserts)
Produce a complete message including the prefix, the position (if known) and with the inserts applied to the
message.
|
JobDSLMessage.Kind |
getKind() |
static JobDSLMessage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JobDSLMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobDSLMessage UNEXPECTED_DATA_AFTER_JOBSPEC
public static final JobDSLMessage NO_WHITESPACE_BEFORE_ARG_NAME
public static final JobDSLMessage NO_WHITESPACE_BEFORE_ARG_EQUALS
public static final JobDSLMessage NO_WHITESPACE_BEFORE_ARG_VALUE
public static final JobDSLMessage EXPECTED_ARGUMENT_VALUE
public static final JobDSLMessage MISSING_CHARACTER
public static final JobDSLMessage NOT_EXPECTED_TOKEN
public static final JobDSLMessage OOD
public static final JobDSLMessage UNEXPECTED_DATA
public static final JobDSLMessage EXPECTED_WHITESPACE_AFTER_NAME_BEFORE_ARGUMENT
public static final JobDSLMessage NO_WHITESPACE_IN_DOTTED_NAME
public static final JobDSLMessage MISSING_JOB_NAME_IN_INLINEJOBDEF
public static final JobDSLMessage EXPECTED_TRANSITION_NAME
public static final JobDSLMessage EXPECTED_EQUALS_AFTER_TRANSITION_NAME
public static final JobDSLMessage NON_TERMINATING_QUOTED_STRING
public static final JobDSLMessage NON_TERMINATING_DOUBLE_QUOTED_STRING
public static final JobDSLMessage UNEXPECTED_ESCAPE_CHAR
public static final JobDSLMessage MISSING_EQUALS_AFTER_TRANSITION_NAME
public static final JobDSLMessage ONLY_ONE_AMPERSAND_REQUIRED
public static final JobDSLMessage EXPECTED_JOB_REF_OR_DEF
public static final JobDSLMessage JOB_REF_DOES_NOT_SUPPORT_OPTIONS
public static final JobDSLMessage EXPECTED_FLOW_OR_SPLIT_CHARS
public static JobDSLMessage[] values()
for (JobDSLMessage c : JobDSLMessage.values()) System.out.println(c);
public static JobDSLMessage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String formatMessage(int pos, java.lang.Object... inserts)
pos
- the position, if less than zero it is ignored and not included in the messageinserts
- the inserts to put into the formatted messagepublic JobDSLMessage.Kind getKind()