@ParametersAreNonnullByDefault public final class Throwables extends Object
| Modifier and Type | Method and Description |
|---|---|
static RuntimeException |
notImplementedYet(String methodName)
Returns a new
RuntimeException thrown when calling a method that is not yet implemented. |
static RuntimeException |
notInstantiableClass(Class<?> type)
Returns a new
RuntimeException thrown when calling a constructor of a non-instantiable class. |
static RuntimeException |
shouldNeverHappen(Throwable e)
Returns a new
RuntimeException when a call leads to a state that should never have occurred under normal
conditions. |
@Nonnull public static RuntimeException shouldNeverHappen(Throwable e)
RuntimeException when a call leads to a state that should never have occurred under normal
conditions.e - the catched exception@Nonnull public static RuntimeException notImplementedYet(String methodName)
RuntimeException thrown when calling a method that is not yet implemented.methodName - the name of the method not implemented@Nonnull public static RuntimeException notInstantiableClass(Class<?> type)
RuntimeException thrown when calling a constructor of a non-instantiable class.type - the non-instantiable classStaticCopyright © 2017–2019 Atlanmod. All rights reserved.