|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception scale.common.Exception
public class 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.
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 |
---|
public Exception(java.lang.String info)
info
- - information about the exceptionMethod Detail |
---|
public void handler()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |