|
||||||||||
| 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.util.FormattedException
at.dms.compiler.PositionedError
at.dms.compiler.CWarning
public class CWarning
This class represents warnings in the compiler error hierarchy
| Constructor Summary | |
|---|---|
CWarning(TokenReference where,
Message message)
An error with a formatted message as argument |
|
CWarning(TokenReference where,
MessageDescription description)
An error without parameters |
|
CWarning(TokenReference where,
MessageDescription description,
Object parameter)
An error with one parameter |
|
CWarning(TokenReference where,
MessageDescription description,
Object[] parameters)
An error with an arbitrary number of parameters |
|
CWarning(TokenReference where,
MessageDescription description,
Object parameter1,
Object parameter2)
An error with two parameters |
|
| Method Summary | |
|---|---|
int |
getSeverityLevel()
Returns the severity level |
| Methods inherited from class at.dms.compiler.PositionedError |
|---|
getMessage, getTokenReference |
| Methods inherited from class at.dms.util.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 CWarning(TokenReference where,
Message message)
where - the position in the source codemessage - the formatted message
public CWarning(TokenReference where,
MessageDescription description,
Object[] parameters)
where - the position in the source codedescription - the message descriptionparameters - the array of parameters
public CWarning(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 CWarning(TokenReference where,
MessageDescription description,
Object parameter)
where - the position in the source codedescription - the message descriptionparameter - the parameter
public CWarning(TokenReference where,
MessageDescription description)
where - the position in the source codedescription - the message description| Method Detail |
|---|
public int getSeverityLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||