public class PatternParseException
extends java.lang.IllegalArgumentException
Modifier and Type | Class and Description |
---|---|
static class |
PatternParseException.PatternMessage
The messages that can be included in a
PatternParseException when there is a parse failure. |
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
inserts |
private PatternParseException.PatternMessage |
messageType |
private char[] |
pattern |
private int |
position |
Constructor and Description |
---|
PatternParseException(int pos,
char[] pattern,
PatternParseException.PatternMessage messageType,
java.lang.Object... inserts) |
PatternParseException(java.lang.Throwable cause,
int pos,
char[] pattern,
PatternParseException.PatternMessage messageType,
java.lang.Object... inserts) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getInserts() |
java.lang.String |
getMessage()
Return a formatted message with inserts applied.
|
PatternParseException.PatternMessage |
getMessageType() |
int |
getPosition() |
java.lang.String |
toDetailedString()
Return a detailed message that includes the original pattern text
with a pointer to the error position, as well as the error message.
|
private final int position
private final char[] pattern
private final PatternParseException.PatternMessage messageType
private final java.lang.Object[] inserts
PatternParseException(int pos, char[] pattern, PatternParseException.PatternMessage messageType, java.lang.Object... inserts)
PatternParseException(java.lang.Throwable cause, int pos, char[] pattern, PatternParseException.PatternMessage messageType, java.lang.Object... inserts)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toDetailedString()
public int getPosition()
public PatternParseException.PatternMessage getMessageType()
public java.lang.Object[] getInserts()