public class AssertionFailedException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
AssertionFailedException(java.lang.Exception ex)
Creates an AssertionFailedException for the given exception that should
never have been thrown.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
shouldNotHappen(java.lang.Exception ex)
Convenience method.
|
public AssertionFailedException(java.lang.Exception ex)
ex - the exception that should never have been thrown.public static void shouldNotHappen(java.lang.Exception ex)
throws AssertionFailedException
ex - the exception that should never have been thrown.AssertionFailedException - for the exception ex.