|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
org.multijava.util.compiler.UnpositionedError
This class is the root class for all compiler errors without a reference to the source text.
| Field Summary | |
private Message |
message
|
| Fields inherited from class java.lang.Throwable |
|
| Constructor Summary | |
UnpositionedError(Message message)
An exception with a formatted message as argument |
|
UnpositionedError(MessageDescription description)
An exception without parameters |
|
UnpositionedError(MessageDescription description,
Object parameter)
An exception with one parameter |
|
UnpositionedError(MessageDescription description,
Object parameter1,
Object parameter2)
An exception with two parameters |
|
UnpositionedError(MessageDescription description,
Object[] parameters)
An exception with an arbitrary number of parameters |
|
| Method Summary | |
PositionedError |
addPosition(TokenReference where)
Returns an error with a reference to the source file. |
String |
getErrorMessage()
Returns the string explaining the exception. |
Message |
getFormattedMessage()
Returns the formatted message. |
String |
getMessage()
Returns a string explaining the exception. |
boolean |
hasDescription(MessageDescription description)
Returns true iff the error has specified description. |
| 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 Message message
| Constructor Detail |
public UnpositionedError(Message message)
message - the formatted message
public UnpositionedError(MessageDescription description,
Object[] parameters)
description - the message descriptionparameters - the array of parameters
public UnpositionedError(MessageDescription description,
Object parameter1,
Object parameter2)
description - the message descriptionparameter1 - the first parameterparameter2 - the second parameter
public UnpositionedError(MessageDescription description,
Object parameter)
description - the message descriptionparameter - the parameterpublic UnpositionedError(MessageDescription description)
description - the message description| Method Detail |
public String getMessage()
getMessage in class Throwablepublic Message getFormattedMessage()
public String getErrorMessage()
public boolean hasDescription(MessageDescription description)
public PositionedError addPosition(TokenReference where)
where - the position in the source file responsible for the error
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||