scale.common
Class Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by scale.common.Exception
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidException

public class Exception
extends java.lang.Exception

The base class for exceptions thrown by the Scale system.

$Id: Exception.java,v 1.14 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 exception messages.

Exceptions are checked and must appear in the signature of the method that throws them.

To define a new exception, 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
Exception(java.lang.String info)
           
 
Method Summary
 void handler()
          Displays the exception and the java execution stack.
 
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

Exception

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

handler

public void handler()
Displays the exception and the java execution stack.