at.dms.compiler
Class CWarning

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--at.dms.util.FormattedException
                    |
                    +--at.dms.compiler.PositionedError
                          |
                          +--at.dms.compiler.CWarning
All Implemented Interfaces:
java.io.Serializable

public class CWarning
extends PositionedError

This class represents warnings in the compiler error hierarchy.

See Also:
Serialized Form

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, java.lang.Object parameter)
          An error with one parameter
CWarning(TokenReference where, MessageDescription description, java.lang.Object[] parameters)
          An error with an arbitrary number of parameters
CWarning(TokenReference where, MessageDescription description, java.lang.Object parameter1, java.lang.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
getErrorMessage, getFormattedMessage, hasDescription
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CWarning

public CWarning(TokenReference where,
                Message message)
An error with a formatted message as argument.
Parameters:
where - the position in the source code
message - the formatted message

CWarning

public CWarning(TokenReference where,
                MessageDescription description,
                java.lang.Object[] parameters)
An error with an arbitrary number of parameters
Parameters:
where - the position in the source code
description - the message description
parameters - the array of parameters

CWarning

public CWarning(TokenReference where,
                MessageDescription description,
                java.lang.Object parameter1,
                java.lang.Object parameter2)
An error with two parameters
Parameters:
where - the position in the source code
description - the message description
parameter1 - the first parameter
parameter2 - the second parameter

CWarning

public CWarning(TokenReference where,
                MessageDescription description,
                java.lang.Object parameter)
An error with one parameter
Parameters:
where - the position in the source code
description - the message description
parameter - the parameter

CWarning

public CWarning(TokenReference where,
                MessageDescription description)
An error without parameters
Parameters:
where - the position in the source code
description - the message description
Method Detail

getSeverityLevel

public int getSeverityLevel()
Returns the severity level