© 1998-2002 McGraw-Hill

structure
Class FailedPrecondition

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Error
              |
              +--structure.FailedAssertion
                    |
                    +--structure.FailedPrecondition
All Implemented Interfaces:
Serializable

class FailedPrecondition
extends FailedAssertion

This error is thrown by the Assert class in the event of a failed precondition. Errors are thrown rather than exceptions because failed preconditions are assumed to be an indication of such an egregious program failure that recovery is impossible.

See Also:
Assert.pre(boolean, java.lang.String), Serialized Form

Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
FailedPrecondition(String reason)
          Constructs an error indicating failure to meet a precondition.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

FailedPrecondition

public FailedPrecondition(String reason)
Constructs an error indicating failure to meet a precondition.
Parameters:
reason - String describing precondition.

© 1998-2002 McGraw-Hill