|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jopendocument.util.ExceptionUtils
public class ExceptionUtils
Utilitaires pour les exceptions.
| Method Summary | ||
|---|---|---|
static
|
createExn(Class<T> exnClass,
String msg,
Throwable cause)
Crée une exception avec message et cause. |
|
static
|
createRTExn(Class<T> exnClass,
String msg,
Throwable cause)
Deprecated. use createExn(Class, String, Throwable) |
|
static String |
getStackTrace(Throwable cause)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T extends Exception> T createExn(Class<T> exnClass,
String msg,
Throwable cause)
T - le type d'exception à créer.exnClass - la classe de l'exception à créer, eg IOException.class.msg - le message.cause - la cause.
public static <T extends RuntimeException> T createRTExn(Class<T> exnClass,
String msg,
Throwable cause)
createExn(Class, String, Throwable)
T - le type d'exception à créer.exnClass - la classe de l'exception à créer, eg IllegalArgumentException.class.msg - le message.cause - la cause.
IllegalArgumentException - if exnClass is not Runtime.createExn(Class, String, Throwable)public static String getStackTrace(Throwable cause)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||