|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--at.dms.compiler.UnpositionedError
This class is the root class for all compiler errors without a reference to the source text.
Constructor Summary | |
UnpositionedError(Message message)
An exception with a formatted message as argument. |
|
UnpositionedError(MessageDescription description)
An exception without parameters. |
|
UnpositionedError(MessageDescription description,
java.lang.Object parameter)
An exception with one parameter. |
|
UnpositionedError(MessageDescription description,
java.lang.Object[] parameters)
An exception with an arbitrary number of parameters. |
|
UnpositionedError(MessageDescription description,
java.lang.Object parameter1,
java.lang.Object parameter2)
An exception with two parameters. |
Method Summary | |
PositionedError |
addPosition(TokenReference where)
Returns an error with a reference to the source file. |
java.lang.String |
getErrorMessage()
Returns the string explaining the exception. |
Message |
getFormattedMessage()
Returns the formatted message. |
java.lang.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, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public UnpositionedError(Message message)
message
- The formatted message.public UnpositionedError(MessageDescription description, java.lang.Object[] parameters)
description
- The message description.parameters
- The array of parameters.public UnpositionedError(MessageDescription description, java.lang.Object parameter1, java.lang.Object parameter2)
description
- the message descriptionparameter1
- the first parameterparameter2
- the second parameterpublic UnpositionedError(MessageDescription description, java.lang.Object parameter)
description
- The message description.parameter
- The parameter.public UnpositionedError(MessageDescription description)
description
- The message description.Method Detail |
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public Message getFormattedMessage()
public java.lang.String getErrorMessage()
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |