at.dms.kjc
Class CBlockError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by at.dms.util.FormattedException
              extended by at.dms.compiler.PositionedError
                  extended by at.dms.kjc.CBlockError
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CLineError

public class CBlockError
extends PositionedError

This class represents block errors in the error hierarchy.

See Also:
Serialized Form

Constructor Summary
CBlockError(TokenReference where, Message message)
          An error with a formatted message as argument
CBlockError(TokenReference where, MessageDescription description)
          An error without parameters
CBlockError(TokenReference where, MessageDescription description, Object parameter)
          An error with one parameter
CBlockError(TokenReference where, MessageDescription description, Object[] parameters)
          An error with an arbitrary number of parameters
CBlockError(TokenReference where, MessageDescription description, Object parameter1, Object parameter2)
          An error with two parameters
 
Method Summary
 
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

CBlockError

public CBlockError(TokenReference where,
                   Message message)
An error with a formatted message as argument

Parameters:
where - the position in the source code
message - the formatted message

CBlockError

public CBlockError(TokenReference where,
                   MessageDescription description,
                   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

CBlockError

public CBlockError(TokenReference where,
                   MessageDescription description,
                   Object parameter1,
                   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

CBlockError

public CBlockError(TokenReference where,
                   MessageDescription description,
                   Object parameter)
An error with one parameter

Parameters:
where - the position in the source code
description - the message description
parameter - the parameter

CBlockError

public CBlockError(TokenReference where,
                   MessageDescription description)
An error without parameters

Parameters:
where - the position in the source code
description - the message description