com.mysql.jdbc
Class AssertionFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.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 classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AssertionFailedException
public AssertionFailedException(java.lang.Exception ex)
- Creates an AssertionFailedException for the given exception
that should never have been thrown.
shouldNotHappen
public static void shouldNotHappen(java.lang.Exception ex)
throws AssertionFailedException
- Convenience method.