public enum XDDSLMessages extends java.lang.Enum<XDDSLMessages>
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 |
XDDSLMessages.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.
|
XDDSLMessages.Kind |
getKind() |
static XDDSLMessages |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XDDSLMessages[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XDDSLMessages UNEXPECTED_DATA_AFTER_STREAMDEF
public static final XDDSLMessages NO_WHITESPACE_BEFORE_ARG_NAME
public static final XDDSLMessages NO_WHITESPACE_BEFORE_ARG_EQUALS
public static final XDDSLMessages NO_WHITESPACE_BEFORE_ARG_VALUE
public static final XDDSLMessages MORE_INPUT
public static final XDDSLMessages EXPECTED_ARGUMENT_VALUE
public static final XDDSLMessages NON_TERMINATING_DOUBLE_QUOTED_STRING
public static final XDDSLMessages NON_TERMINATING_QUOTED_STRING
public static final XDDSLMessages MISSING_CHARACTER
public static final XDDSLMessages NOT_EXPECTED_TOKEN
public static final XDDSLMessages OOD
public static final XDDSLMessages UNEXPECTED_ESCAPE_CHAR
public static final XDDSLMessages UNEXPECTED_DATA
public static final XDDSLMessages UNRECOGNIZED_STREAM_REFERENCE
public static final XDDSLMessages UNRECOGNIZED_MODULE_REFERENCE
public static final XDDSLMessages EXPECTED_MODULENAME
public static final XDDSLMessages EXPECTED_WHITESPACE_AFTER_MODULE_BEFORE_ARGUMENT
public static final XDDSLMessages EXPECTED_CHANNEL_QUALIFIER
public static final XDDSLMessages EXPECTED_CHANNEL_NAME
public static final XDDSLMessages ILLEGAL_STREAM_NAME
public static final XDDSLMessages MISSING_VALUE_FOR_VARIABLE
public static final XDDSLMessages VARIABLE_NOT_TERMINATED
public static final XDDSLMessages AMBIGUOUS_MODULE_NAME
public static final XDDSLMessages STREAM_NAME_MATCHING_MODULE_NAME
public static final XDDSLMessages CHANNEL_INDEXING_NOT_ALLOWED
public static final XDDSLMessages ONLY_A_TAP_ON_A_STREAM_OR_JOB_CAN_BE_INDEXED
public static final XDDSLMessages EXPECTED_CHANNEL_PREFIX_QUEUE_TOPIC
public static final XDDSLMessages EXPECTED_CHANNEL_PREFIX_QUEUE_TOPIC_TAP
public static final XDDSLMessages CANNOT_USE_COMPOSEDMODULE_HERE_AS_IT_DEFINES_SOURCE_CHANNEL
public static final XDDSLMessages CANNOT_USE_COMPOSEDMODULE_HERE_AS_IT_DEFINES_SINK_CHANNEL
public static final XDDSLMessages CANNOT_USE_COMPOSEDMODULE_HERE_ALREADY_HAS_SOURCE_CHANNEL
public static final XDDSLMessages CANNOT_USE_COMPOSEDMODULE_HERE_ALREADY_HAS_SINK_CHANNEL
public static final XDDSLMessages NO_WHITESPACE_IN_CHANNEL_DEFINITION
public static final XDDSLMessages NO_WHITESPACE_BETWEEN_LABEL_NAME_AND_COLON
public static final XDDSLMessages TAP_NEEDS_THREE_COMPONENTS
public static final XDDSLMessages NOT_ALLOWED_TO_TAP_THAT
public static final XDDSLMessages DUPLICATE_LABEL
public static final XDDSLMessages MODULE_REFERENCE_NOT_UNIQUE
public static final XDDSLMessages NO_WHITESPACE_IN_DOTTED_NAME
public static final XDDSLMessages NAMED_CHANNELS_UNSUPPORTED_HERE
public static XDDSLMessages[] values()
for (XDDSLMessages c : XDDSLMessages.values()) System.out.println(c);
public static XDDSLMessages 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 XDDSLMessages.Kind getKind()