MySQL Connector/J size='-1'>5.0.8

com.mysql.jdbc
Class AssertionFailedException

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.1 2005/05/13 18:58:37 mmatthews Exp $
Author:
Mark Matthews
See Also:
Serialized Form

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.

Parameters:
ex - the exception that should never have been thrown.
Method Detail

shouldNotHappen

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

Parameters:
ex - the exception that should never have been thrown.
Throws:
AssertionFailedException - for the exception ex.

MySQL Connector/J size='-1'>5.0.8