org.apache.openejb.util
Class Exceptions

java.lang.Object
  extended by org.apache.openejb.util.Exceptions

public class Exceptions
extends Object

Version:
$Rev: 710022 $ $Date: 2008-11-03 09:40:14 +0100 (Mo, 03. Nov 2008) $

Constructor Summary
Exceptions()
           
 
Method Summary
static
<T extends Throwable>
T
initCause(T t, Throwable cause)
          Removes the need for a cast when using initCause
static AuthenticationException newAuthenticationException(String message, Throwable cause)
           
static AuthenticationException newAuthenticationException(Throwable cause)
           
static javax.ejb.EJBException newEJBException(String message, Throwable cause)
           
static javax.ejb.EJBException newEJBException(Throwable cause)
           
static IOException newIOException(String message, Throwable cause)
           
static IOException newIOException(Throwable cause)
           
static NamingException newNamingException(String message, Throwable cause)
           
static NamingException newNamingException(Throwable cause)
           
static NotSerializableException newNotSerializableException(String message, Throwable cause)
           
static NotSerializableException newNotSerializableException(Throwable cause)
           
static RollbackException newRollbackException(String message, Throwable cause)
           
static RollbackException newRollbackException(Throwable cause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exceptions

public Exceptions()
Method Detail

initCause

public static <T extends Throwable> T initCause(T t,
                                                Throwable cause)
Removes the need for a cast when using initCause

Parameters:
t -
cause -
Returns:

newIOException

public static IOException newIOException(String message,
                                         Throwable cause)

newIOException

public static IOException newIOException(Throwable cause)

newNamingException

public static NamingException newNamingException(String message,
                                                 Throwable cause)

newNamingException

public static NamingException newNamingException(Throwable cause)

newRollbackException

public static RollbackException newRollbackException(String message,
                                                     Throwable cause)

newRollbackException

public static RollbackException newRollbackException(Throwable cause)

newAuthenticationException

public static AuthenticationException newAuthenticationException(String message,
                                                                 Throwable cause)

newAuthenticationException

public static AuthenticationException newAuthenticationException(Throwable cause)

newEJBException

public static javax.ejb.EJBException newEJBException(String message,
                                                     Throwable cause)

newEJBException

public static javax.ejb.EJBException newEJBException(Throwable cause)

newNotSerializableException

public static NotSerializableException newNotSerializableException(String message,
                                                                   Throwable cause)

newNotSerializableException

public static NotSerializableException newNotSerializableException(Throwable cause)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.