scale.common
Class Error

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by scale.common.Error
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InternalError, InvalidTableError, NotImplementedError

public class Error
extends java.lang.Error

This class is the base class for all errors.

$Id: Error.java,v 1.15 2005-02-07 21:28:21 burrill Exp $

Copyright 2008 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.

Using this base class aids Scale in standardizing the appearance of all its error messages.

Errors are unchecked exceptions and do not have to appear in the signature of the method that throws them.

To define a new error, a developer should define a new class that inherits either from this class or one of its descendents and write a constructor which can be used in a throw statement.

See Also:
Serialized Form

Constructor Summary
Error(java.lang.String info)
           
 
Method Summary
 void handler()
          Display the error and the java execution stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

Error

public Error(java.lang.String info)
Parameters:
info - - information about the error
Method Detail

handler

public void handler()
Display the error and the java execution stack trace.