Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.infosmid.stream.dsl.ParseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CheckPointedParseException
Root exception for DSL parsing related exceptions. Rather than holding a hard coded
string indicating the problem, it records a message key and the inserts for the
message. See
DSLMessage for the list of all possible messages that can occur.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Object[]protected DSLMessageprotected int -
Constructor Summary
ConstructorsConstructorDescriptionParseException(String expressionString, int position, DSLMessage message, Object... inserts) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
expressionString
-
position
protected int position -
message
-
inserts
-
-
Constructor Details
-
ParseException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable- Returns:
- a formatted message with inserts applied
-
getMessageCode
- Returns:
- the message code
-
getInserts
- Returns:
- the message inserts
-
getExpressionString
- Returns:
- the dsl expression text
-
getPosition
public final int getPosition()- Returns:
- location of the error in the expression text
-
toExceptionDescriptor
-