public class Exceptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Exceptions.SoftenedException |
static interface |
Exceptions.Trial |
static interface |
Exceptions.TrialWithReturn<T> |
| Constructor and Description |
|---|
Exceptions() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
die() |
static <T> T |
die(Class<T> clazz,
String message) |
static boolean |
die(String message) |
static <T> T |
handle(Class<T> clazz,
Exception e) |
static <T> T |
handle(Class<T> clazz,
String message,
Throwable e) |
static void |
handle(Exception e) |
static void |
handle(String message,
Throwable e) |
static String |
toJSON(Exception ex) |
static String |
toString(Exception ex) |
static <T> T |
tryIt(Class<T> clazz,
Exceptions.TrialWithReturn<T> tryIt) |
static void |
tryIt(Exceptions.Trial tryIt) |
static void |
tryIt(String message,
Exceptions.Trial tryIt) |
public static boolean die()
public static boolean die(String message)
public static void handle(Exception e)
public static <T> T tryIt(Class<T> clazz, Exceptions.TrialWithReturn<T> tryIt)
public static void tryIt(Exceptions.Trial tryIt)
public static void tryIt(String message, Exceptions.Trial tryIt)
Copyright © 2014. All rights reserved.