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