Class AssertionFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mysql.jdbc.AssertionFailedException
- All Implemented Interfaces:
Serializable
Assertions for empty code paths that should never be executed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an AssertionFailedException for the given exception that should never have been thrown. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AssertionFailedException
Creates an AssertionFailedException for the given exception that should never have been thrown.- Parameters:
ex- the exception that should never have been thrown.
-
-
Method Details
-
shouldNotHappen
Convenience method.- Parameters:
ex- the exception that should never have been thrown.- Throws:
AssertionFailedException- for the exception ex.
-