All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oplan.util.AssertionFailure

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.lang.RuntimeException
                           |
                           +----oplan.util.AssertionFailure

public class AssertionFailure
extends RuntimeException
The exception thrown by Debug.assert when an assertion is false.

AssertionFailure is a RuntimeException and so does not need to be listed in the "throws" clauses of method definitions. One reason for that is to avoid discouraging the use of assertions. If AssertionFailure had to be declared, then adding an assertion in a method that had none before would require nonlocal changes in the code.

See Also:
assert

Constructor Index

 o AssertionFailure()
 o AssertionFailure(String)

Constructors

 o AssertionFailure
 AssertionFailure()
 o AssertionFailure
 AssertionFailure(String m)

All Packages  Class Hierarchy  This Package  Previous  Next  Index