|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.multijava.util.FormattedException
org.multijava.util.compiler.PositionedError
This class is the root class for all compiler errors with a reference to the source text.
| Field Summary | |
private TokenReference |
where
|
| Fields inherited from class org.multijava.util.FormattedException |
|
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
| 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 parameter1,
Object parameter2)
An error with two parameters |
|
PositionedError(TokenReference where,
MessageDescription description,
Object[] parameters)
An error with an arbitrary number of parameters |
|
| Method Summary | |
String |
getMessage()
Returns the string explaining the error. |
TokenReference |
getTokenReference()
Returns the position in the source code. |
| Methods inherited from class org.multijava.util.FormattedException |
getErrorMessage, 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 |
| Field Detail |
private final TokenReference where
| Constructor Detail |
public PositionedError(TokenReference where,
Message message)
where - the position in the source codemessage - the formatted message
public PositionedError(TokenReference where,
MessageDescription description,
Object[] parameters)
where - the position in the source codedescription - the message descriptionparameters - the array of parameters
public PositionedError(TokenReference where,
MessageDescription description,
Object parameter1,
Object parameter2)
where - the position in the source codedescription - the message descriptionparameter1 - the first parameterparameter2 - the second parameter
public PositionedError(TokenReference where,
MessageDescription description,
Object parameter)
where - the position in the source codedescription - the message descriptionparameter - the parameter
public PositionedError(TokenReference where,
MessageDescription description)
where - the position in the source codedescription - the message description| Method Detail |
public TokenReference getTokenReference()
public String getMessage()
getMessage in class FormattedException
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||