org.eclipse.stp.core.infrastructure.assertion
Class AssertionFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eclipse.stp.core.infrastructure.assertion.AssertionFailedException
All Implemented Interfaces:
java.io.Serializable

public class AssertionFailedException
extends java.lang.RuntimeException

AssertionFailedException is a runtime exception thrown by some of the methods in Assert.

This class is not declared public to prevent some misuses; programs that catch or otherwise depend on assertion failures are susceptible to unexpected breakage when assertions in the code are added or removed.

See Also:
Serialized Form

Constructor Summary
AssertionFailedException(java.lang.String detail)
          Constructs a new exception with the given message.
AssertionFailedException(java.lang.Throwable t)
          Constructs a new exception with the given message.
 
Method Summary
 java.lang.Throwable getWrappedException()
           
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertionFailedException

public AssertionFailedException(java.lang.String detail)
Constructs a new exception with the given message.


AssertionFailedException

public AssertionFailedException(java.lang.Throwable t)
Constructs a new exception with the given message.

Method Detail

getWrappedException

public final java.lang.Throwable getWrappedException()