|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
at.dms.compiler.tools.common.UnpositionedError
public class UnpositionedError
This class is the root class for all compiler errors without a reference to the source text.
| Constructor Summary | |
|---|---|
UnpositionedError(Message message)
Creates an error with a formatted message as argument. |
|
UnpositionedError(MessageDescription description)
Creates an error without parameters. |
|
UnpositionedError(MessageDescription description,
Object parameter)
Creates an error with one parameter. |
|
UnpositionedError(MessageDescription description,
Object[] parameters)
Creates an error with an arbitrary number of parameters. |
|
UnpositionedError(MessageDescription description,
Object parameter1,
Object parameter2)
Creates an error with two parameters. |
|
| Method Summary | |
|---|---|
PositionedError |
addPosition(TokenReference where)
Returns an error with a reference to the source file. |
Message |
getFormattedMessage()
Returns the formatted message. |
String |
getMessage()
Returns a string explaining the error. |
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 |
| 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 boolean hasDescription(MessageDescription description)
public PositionedError addPosition(TokenReference where)
where - the position in the source file responsible for the error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||