ix.util
Class AssertionFailure

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Error
              |
              +--ix.util.AssertionFailure
All Implemented Interfaces:
java.io.Serializable

public class AssertionFailure
extends java.lang.Error

The exception thrown by Debug.assert when an assertion is false.

AssertionFailure is an Error 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:
Debug.assert(boolean), Serialized Form

Constructor Summary
(package private) AssertionFailure()
           
(package private) AssertionFailure(java.lang.String m)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertionFailure

AssertionFailure()

AssertionFailure

AssertionFailure(java.lang.String m)