nz.ac.waikato.jdsl.core.api
Class CoreException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nz.ac.waikato.jdsl.core.api.CoreException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AssertionException, BoundaryViolationException, EmptyContainerException, FullContainerException, InvalidAccessorException, InvalidAttributeException, InvalidContainerException, InvalidKeyException, InvalidMethodCallException, NonEmptyContainerException
public abstract class CoreException
- extends java.lang.RuntimeException
This is the class from which all exceptions of the core package are
descended.
CoreExceptions (and its subclasses) can now take a "cause" to enhance the
stack trace. This should be used if a low-level exception was caught, but
could not be resolved -- so a higher-level exception (this) was thrown.
The cause of an exception can be any throwable object.
If you want the compiler to help you check special cases that you might
have missed, copy all the exceptions to your own directory, change
"extends RuntimeException" to "extends Exception," modify your
CLASSPATH to look first at your own directory, later here.
When you compile again, the compiler will give you a huge number of
"Exception must be caught or declared as thrown" errors, a small
fraction of which will point to special cases you have overlooked.
- Version:
- JDSL 2.1.1
- Author:
- David Ellis, based on a previous version by Mark Handy
- See Also:
Throwable
,
Serialized Form
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 |
CoreException
public CoreException(java.lang.String message)
CoreException
public CoreException(java.lang.String message,
java.lang.Throwable cause)
CoreException
public CoreException(java.lang.Throwable cause)
Copyright © 2009 ModelJUnit Project. All Rights Reserved.