-
Executes the provided statement and returns the exception that
has been thrown by the statement.
Executes the provided statement and returns the exception that
has been thrown by the statement if it has the specified type.
static void
Executes the given statement and suppresses any exception thrown by the
statement.
static void
Executes the given statement and suppresses any exception of the
specified type that is thrown by the statement.
static void
Executes the given statement and encloses any checked exception
thrown with an unchecked
WrappedException
, that
is thrown instead.