public final class ExceptionUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Throwable |
getCause(java.lang.Throwable throwable)
This method checks if throwable has
cause . |
static void |
ignoreThrowable(java.lang.Throwable throwable)
Utility method to ignore non important exceptions.
|
static void |
throwUnchecked(java.lang.Throwable unchecked)
This method throws unchecked throwable, i.e.
|
public static java.lang.Throwable getCause(java.lang.Throwable throwable)
cause
.
If cause==null, this method tries to obtain cause based on throwable type,
e.g. SQLException.getNextException()
throwable
- throwable to find cause.public static void throwUnchecked(java.lang.Throwable unchecked)
Error
or RuntimeException
.unchecked
- unchecked throwable.public static void ignoreThrowable(java.lang.Throwable throwable)
throwable
- throwable to ignore.Copyright © Copyright 2006-2019 The Scriptella Project Team.