Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mysql.jdbc
Class AssertionFailedException  view AssertionFailedException download AssertionFailedException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.mysql.jdbc.AssertionFailedException
All Implemented Interfaces:
java.io.Serializable

public class AssertionFailedException
extends java.lang.RuntimeException

Assertions for empty code paths that should never be executed.

Version:
$Id: AssertionFailedException.java,v 1.1.2.5 2004/08/09 22:15:11 mmatthew Exp $

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
AssertionFailedException(java.lang.Exception ex)
          Creates an AssertionFailedException for the given exception that should never have been thrown.
 
Method Summary
static void shouldNotHappen(java.lang.Exception ex)
          Convenience method.
 
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

AssertionFailedException

public AssertionFailedException(java.lang.Exception ex)
Creates an AssertionFailedException for the given exception that should never have been thrown.

Method Detail

shouldNotHappen

public static void shouldNotHappen(java.lang.Exception ex)
                            throws AssertionFailedException
Convenience method.