public abstract class ParseExceptionInterface
extends java.lang.Exception
Constructor and Description |
---|
ParseExceptionInterface(java.lang.Integer pos)
Creates an instance with a "Parse exception" message
|
ParseExceptionInterface(java.lang.Integer pos,
java.lang.String message)
Creates an instance.
|
ParseExceptionInterface(java.lang.String message)
Creates an instance, sets the error position to unknown
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInputKey()
Returns the input key of the user, which is assumed to have led to the error
|
int |
getPos()
Returns the error position
|
java.lang.String |
getStringRepresentation()
Returns a user readable string representation of the error
|
abstract boolean |
hasSource()
Returns true, if and only if, source code is attached to the exception
|
boolean |
isPosSet()
Returns true, if and only if, the position is known
|
protected java.lang.String |
posToString() |
void |
setInputKey(java.lang.String inputKey)
Sets the input key of the user, which is assumed to have led to the error
|
void |
setPos(int pos)
Sets the error position
|
java.lang.String |
toString() |
public ParseExceptionInterface(java.lang.Integer pos, java.lang.String message)
pos
- the position where the error occurredmessage
- the error messagepublic ParseExceptionInterface(java.lang.Integer pos)
pos
- the position where the error occurredpublic ParseExceptionInterface(java.lang.String message)
message
- the error messagepublic int getPos()
public void setPos(int pos)
public java.lang.String toString()
toString
in class java.lang.Throwable
public java.lang.String getStringRepresentation()
protected java.lang.String posToString()
public java.lang.String getInputKey()
public void setInputKey(java.lang.String inputKey)
public boolean isPosSet()
public abstract boolean hasSource()