public static class DspException.Aide extends Object
The reason to use a class to hold static utilities is we can override the method's return type later.
| Constructor and Description |
|---|
DspException.Aide() |
| Modifier and Type | Method and Description |
|---|---|
static DspException |
wrap(Throwable t)
Converts an exception to DspException if it is
not RuntimeException nor Error.
|
static DspException |
wrap(Throwable t,
int code)
Converts an exception to DspException if it is
not RuntimeException nor Error.
|
static DspException |
wrap(Throwable t,
int code,
Object fmtArg)
Converts an exception to DspException if it is
not RuntimeException nor Error.
|
static DspException |
wrap(Throwable t,
int code,
Object[] fmtArgs)
Converts an exception to DspException if it is
not RuntimeException nor Error.
|
static DspException |
wrap(Throwable t,
String msg)
Converts an exception to DspException if it is
not RuntimeException nor Error.
|
public static DspException wrap(Throwable t)
Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)public static DspException wrap(Throwable t, String msg)
Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)public static DspException wrap(Throwable t, int code, Object[] fmtArgs)
Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)public static DspException wrap(Throwable t, int code, Object fmtArg)
Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)public static DspException wrap(Throwable t, int code)
Exceptions.wrap(java.lang.Throwable, java.lang.Class<? extends java.lang.Throwable>)Copyright © 2016. All rights reserved.