public enum DSLMessage extends Enum<DSLMessage>
When a message is formatted, it will have this kind of form
105E: (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 |
DSLMessage.Kind |
Modifier and Type | Method and Description |
---|---|
String |
formatMessage(int pos,
Object... inserts)
Produce a complete message including the prefix, the position (if known) and with the inserts applied to the
message.
|
DSLMessage.Kind |
getKind() |
static DSLMessage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DSLMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DSLMessage UNEXPECTED_DATA_AFTER_STREAMDEF
public static final DSLMessage NO_WHITESPACE_BEFORE_ARG_NAME
public static final DSLMessage NO_WHITESPACE_BEFORE_ARG_EQUALS
public static final DSLMessage NO_WHITESPACE_BEFORE_ARG_VALUE
public static final DSLMessage MORE_INPUT
public static final DSLMessage EXPECTED_ARGUMENT_VALUE
public static final DSLMessage NON_TERMINATING_DOUBLE_QUOTED_STRING
public static final DSLMessage NON_TERMINATING_QUOTED_STRING
public static final DSLMessage MISSING_CHARACTER
public static final DSLMessage NOT_EXPECTED_TOKEN
public static final DSLMessage OOD
public static final DSLMessage UNEXPECTED_ESCAPE_CHAR
public static final DSLMessage UNEXPECTED_DATA
public static final DSLMessage UNRECOGNIZED_STREAM_REFERENCE
public static final DSLMessage UNRECOGNIZED_APP_REFERENCE
public static final DSLMessage EXPECTED_APPNAME
public static final DSLMessage EXPECTED_WHITESPACE_AFTER_APP_BEFORE_ARGUMENT
public static final DSLMessage ILLEGAL_STREAM_NAME
public static final DSLMessage ILLEGAL_TASK_NAME
public static final DSLMessage MISSING_VALUE_FOR_VARIABLE
public static final DSLMessage VARIABLE_NOT_TERMINATED
public static final DSLMessage AMBIGUOUS_APP_NAME
public static final DSLMessage CANNOT_USE_COMPOSEDAPP_HERE_AS_IT_DEFINES_SOURCE_DESTINATION
public static final DSLMessage CANNOT_USE_COMPOSEDAPP_HERE_AS_IT_DEFINES_SINK_DESTINATION
public static final DSLMessage CANNOT_USE_COMPOSEDAPP_HERE_ALREADY_HAS_SOURCE_DESTINATION
public static final DSLMessage CANNOT_USE_COMPOSEDAPP_HERE_ALREADY_HAS_SINK_DESTINATION
public static final DSLMessage EXPECTED_DESTINATION_PREFIX
public static final DSLMessage NO_WHITESPACE_IN_DESTINATION_DEFINITION
public static final DSLMessage NO_WHITESPACE_BETWEEN_LABEL_NAME_AND_COLON
public static final DSLMessage DUPLICATE_LABEL
public static final DSLMessage APP_REFERENCE_NOT_UNIQUE
public static final DSLMessage NO_WHITESPACE_IN_DOTTED_NAME
public static final DSLMessage DESTINATIONS_UNSUPPORTED_HERE
public static final DSLMessage EXPECTED_WHITESPACE_AFTER_LABEL_COLON
public static final DSLMessage EXPECTED_STREAM_NAME_AFTER_LABEL_COLON
public static DSLMessage[] values()
for (DSLMessage c : DSLMessage.values()) System.out.println(c);
public static DSLMessage valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String formatMessage(int pos, 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 DSLMessage.Kind getKind()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.