org.jtiger.assertion
Class AssertionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jtiger.assertion.AssertionException
All Implemented Interfaces:
Serializable

public final class AssertionException
extends RuntimeException

An exception that may be thrown to indicate that an assertion was not met.

Version:
2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218 CET (GMT + 1)
Author:
Tony Morris
See Also:
Serialized Form

Constructor Summary
AssertionException()
          Create a default AssertionException.
AssertionException(Object... message)
          Create a AssertionException with the given message.
AssertionException(Throwable cause)
          Create a AssertionException with the given cause.
AssertionException(Throwable cause, Object... message)
          Create a AssertionException with the given message and cause.
 
Method Summary
 String getMessage()
          Returns the message for this exception which may be concatenated by passing multiple arguments to constructors.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

AssertionException

public AssertionException()
Create a default AssertionException.


AssertionException

public AssertionException(Object... message)
Create a AssertionException with the given message.

Parameters:
message - The message of the AssertionException.

AssertionException

public AssertionException(Throwable cause)
Create a AssertionException with the given cause.

Parameters:
cause - The cause of the AssertionException.

AssertionException

public AssertionException(Throwable cause,
                          Object... message)
Create a AssertionException with the given message and cause.

Parameters:
cause - The cause of the AssertionException.
message - The message of the AssertionException.
Method Detail

getMessage

public String getMessage()
Returns the message for this exception which may be concatenated by passing multiple arguments to constructors.

Overrides:
getMessage in class Throwable
Returns:
The message for this exception which may be concatenated by passing multiple arguments to constructors.