public class Exceptions
extends java.lang.Object
Constructor and Description |
---|
Exceptions() |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Throwable> |
initCause(T t,
java.lang.Throwable cause)
Removes the need for a cast when using initCause
|
static javax.naming.AuthenticationException |
newAuthenticationException(java.lang.String message,
java.lang.Throwable cause) |
static javax.naming.AuthenticationException |
newAuthenticationException(java.lang.Throwable cause) |
static EJBException |
newEJBException(java.lang.String message,
java.lang.Throwable cause) |
static EJBException |
newEJBException(java.lang.Throwable cause) |
static java.io.IOException |
newIOException(java.lang.String message,
java.lang.Throwable cause) |
static java.io.IOException |
newIOException(java.lang.Throwable cause) |
static javax.naming.NamingException |
newNamingException(java.lang.String message,
java.lang.Throwable cause) |
static javax.naming.NamingException |
newNamingException(java.lang.Throwable cause) |
static java.io.NotSerializableException |
newNotSerializableException(java.lang.String message,
java.lang.Throwable cause) |
static java.io.NotSerializableException |
newNotSerializableException(java.lang.Throwable cause) |
static RollbackException |
newRollbackException(java.lang.String message,
java.lang.Throwable cause) |
static RollbackException |
newRollbackException(java.lang.Throwable cause) |
public static <T extends java.lang.Throwable> T initCause(T t, java.lang.Throwable cause)
t
- Tcause
- Throwablepublic static java.io.IOException newIOException(java.lang.String message, java.lang.Throwable cause)
public static java.io.IOException newIOException(java.lang.Throwable cause)
public static javax.naming.NamingException newNamingException(java.lang.String message, java.lang.Throwable cause)
public static javax.naming.NamingException newNamingException(java.lang.Throwable cause)
public static RollbackException newRollbackException(java.lang.String message, java.lang.Throwable cause)
public static RollbackException newRollbackException(java.lang.Throwable cause)
public static javax.naming.AuthenticationException newAuthenticationException(java.lang.String message, java.lang.Throwable cause)
public static javax.naming.AuthenticationException newAuthenticationException(java.lang.Throwable cause)
public static EJBException newEJBException(java.lang.String message, java.lang.Throwable cause)
public static EJBException newEJBException(java.lang.Throwable cause)
public static java.io.NotSerializableException newNotSerializableException(java.lang.String message, java.lang.Throwable cause)
public static java.io.NotSerializableException newNotSerializableException(java.lang.Throwable cause)