org.obligate.annotations.contract
Class PreconditionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.obligate.annotations.contract.ContractViolationException
                  extended by org.obligate.annotations.contract.PreconditionException
All Implemented Interfaces:
java.io.Serializable

public class PreconditionException
extends ContractViolationException

Precondition violation exception

Since:
16-Jan-2006
Author:
Steve Jones
See Also:
Serialized Form

Constructor Summary
PreconditionException()
           
PreconditionException(java.lang.String msg)
           
PreconditionException(java.lang.String msg, java.lang.Throwable t)
           
PreconditionException(java.lang.Throwable t)
           
 
Method Summary
 
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

PreconditionException

public PreconditionException()

PreconditionException

public PreconditionException(java.lang.String msg)
Parameters:
msg - Display message

PreconditionException

public PreconditionException(java.lang.String msg,
                             java.lang.Throwable t)
Parameters:
msg - Display message
t - The root cause of this exception

PreconditionException

public PreconditionException(java.lang.Throwable t)
Parameters:
t - The root cause of this exception