org.multijava.mjc
Class CLineError
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.multijava.util.FormattedException
org.multijava.util.compiler.PositionedError
org.multijava.mjc.CBlockError
org.multijava.mjc.CLineError
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CExpressionError
- public class CLineError
- extends CBlockError
This class represents Line errors in error hierarchy. These are
errors that are detected while typechecking method, constructor,
and initializer bodies. The fail method of JPhylum is overridden
for statements, expressions, and switch labels to convert an error
message into a CLineError (as opposed to just reporting the error
via the context).
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
CLineError
public CLineError(TokenReference where,
Message message)
- An error with a formatted message as argument
- Parameters:
where - the position in the source codemessage - the formatted message
CLineError
public CLineError(TokenReference where,
MessageDescription description,
Object[] parameters)
- An error with an arbitrary number of parameters
- Parameters:
where - the position in the source codedescription - the message descriptionparameters - the array of parameters
CLineError
public CLineError(TokenReference where,
MessageDescription description,
Object parameter1,
Object parameter2)
- An error with two parameters
- Parameters:
where - the position in the source codedescription - the message descriptionparameter1 - the first parameterparameter2 - the second parameter
CLineError
public CLineError(TokenReference where,
MessageDescription description,
Object parameter)
- An error with one parameter
- Parameters:
where - the position in the source codedescription - the message descriptionparameter - the parameter
CLineError
public CLineError(TokenReference where,
MessageDescription description)
- An error without parameters
- Parameters:
where - the position in the source codedescription - the message description
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.