|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
at.dms.compiler.tools.common.FormattedException
at.dms.compiler.tools.common.PositionedError
public class PositionedError
This class is the root class for all compiler errors with a reference to the source text.
Constructor Summary | |
---|---|
PositionedError(TokenReference where,
Message message)
An error with a formatted message as argument |
|
PositionedError(TokenReference where,
MessageDescription description)
An error without parameters |
|
PositionedError(TokenReference where,
MessageDescription description,
Object parameter)
An error with one parameter |
|
PositionedError(TokenReference where,
MessageDescription description,
Object[] parameters)
An error with an arbitrary number of parameters |
|
PositionedError(TokenReference where,
MessageDescription description,
Object parameter1,
Object parameter2)
An error with two parameters |
Method Summary | |
---|---|
String |
getMessage()
Returns the string explaining the error. |
TokenReference |
getTokenReference()
Returns the position in the source code. |
Methods inherited from class at.dms.compiler.tools.common.FormattedException |
---|
getFormattedMessage, hasDescription |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PositionedError(TokenReference where, Message message)
where
- the position in the source codemessage
- the formatted messagepublic PositionedError(TokenReference where, MessageDescription description, Object[] parameters)
where
- the position in the source codedescription
- the message descriptionparameters
- the array of parameterspublic PositionedError(TokenReference where, MessageDescription description, Object parameter1, Object parameter2)
where
- the position in the source codedescription
- the message descriptionparameter1
- the first parameterparameter2
- the second parameterpublic PositionedError(TokenReference where, MessageDescription description, Object parameter)
where
- the position in the source codedescription
- the message descriptionparameter
- the parameterpublic PositionedError(TokenReference where, MessageDescription description)
where
- the position in the source codedescription
- the message descriptionMethod Detail |
---|
public TokenReference getTokenReference()
public String getMessage()
getMessage
in class FormattedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |