javax.ejb

Class EJBException

Implemented Interfaces:
Serializable
Known Direct Subclasses:
AccessLocalException, ConcurrentAccessException, EJBAccessException, EJBTransactionRequiredException, EJBTransactionRolledbackException, NoSuchEJBException, NoSuchEntityException, NoSuchObjectLocalException, TransactionRequiredLocalException, TransactionRolledbackLocalException

public class EJBException
extends RuntimeException

The main ejb context.
See Also:
Serialized Form

Constructor Summary

EJBException()
EJBException(Exception e)
EJBException(String message)
EJBException(String message, Exception e)

Method Summary

Exception
getCausedByException()

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

EJBException

public EJBException()
Usages and Demos :

View More Examples of EJBException()
   1:             if( t instanceof java.rmi.RemoteException ) {
   2:                 EJBException ejbEx = new EJBException();
   3:                 ejbEx.initCause(t);
   4:                 throw ejbEx;
   5:             } else {

View Full Code Here
   1:         } else {
   2:             toThrow = new EJBException();
   3:             toThrow.initCause(t);
   4:         } 
   5:         

View Full Code Here
   1:             } else {
   2:                 EJBException ejbEx = new EJBException();
   3:                 ejbEx.initCause(inv.exception);
   4:                 throw ejbEx;
   5:             }

View Full Code Here
   1:         } catch(CreateException ce) {            
   2:             EJBException ejbEx = new EJBException();
   3:             ejbEx.initCause(ce);
   4:         ...
   5:         } catch(CreateException ce) {
   6:             EJBException ejbEx = new EJBException();
   7:             ejbEx.initCause(ce);
   8:         ...
   9:         } catch(CreateException ce) {
  10:             EJBException ejbEx = new EJBException();
  11:             ejbEx.initCause(ce);

View Full Code Here
   1:          {
   2:             throw new EJBException();
   3:          }
   4:       } catch (SQLException se)
   5:       {

View Full Code Here

EJBException

public EJBException(Exception e)
Usages and Demos :

View More Examples of EJBException(Exception e)
   1:         } catch (NamingException e) {
   2:             throw new EJBException("" + e);
   3:         }
   4:         ...
   5:         } catch (FinderException e) {
   6:             throw new EJBException("" + e);
   7:         }
   8:         ...
   9:         } catch (NamingException e) {
  10:             throw new EJBException("" + e);
  11:         }

View Full Code Here
   1:         } catch(AdminOrderDAOException ae) {
   2:             throw new EJBException(ae);
   3:         }
   4:         ...
   5:         } catch (AdminOrderDAOException ae) {
   6:             throw new EJBException("AdminOrders: AdminOrderDAOException" + ae);
   7:         }
   8:     }
   9: }

View Full Code Here
   1:         } catch (DataAccessException e) {
   2:             throw new EJBException("ProdutoBean-<init>(): " + e);
   3:         }
   4:         ...
   5:         } catch (DataAccessException e) {
   6:             throw new EJBException("ProdutoBean-ejbRemove(): " + e);
   7:         }
   8:         ...
   9:         } catch (DataAccessException e) {
  10:             throw new EJBException("ProdutoBean-ejbLoad(): " + e);
  11:         }

View Full Code Here
   1:     catch(NamingException e) {
   2:       throw new javax.ejb.EJBException("ClerkBean : setSessionContext() : Naming Exception - " + e);
   3:     }
   4:         ...
   5:     catch (Exception xe) {
   6:       throw new javax.ejb.EJBException("ClerkBean : setSessionContext() : failed with exception : " +  xe.getMessage());
   7:     }
   8:         ...
   9:     catch (Exception xe) {
  10:       throw new javax.ejb.EJBException("ClerkBean : createClaim() : failed with exception : " +  xe.getMessage());
  11:     }

View Full Code Here
   1:         } catch (RemoteException ex) {
   2:              throw new EJBException(": " + ex.getMessage());
   3:         } 
   4:         ...
   5:         } catch (RemoteException ex) {
   6:              throw new EJBException("getDetails: " + ex.getMessage());
   7:         } 
   8:         ...
   9:         } catch (Exception ex) {
  10:             throw new EJBException(ex.getMessage());
  11:         }

View Full Code Here

EJBException

public EJBException(String message)
Usages and Demos :

View More Examples of EJBException(String message)
   1:         } catch (NamingException e) {
   2:             throw new EJBException("" + e);
   3:         }
   4:         ...
   5:         } catch (FinderException e) {
   6:             throw new EJBException("" + e);
   7:         }
   8:         ...
   9:         } catch (NamingException e) {
  10:             throw new EJBException("" + e);
  11:         }

View Full Code Here
   1:         } catch(AdminOrderDAOException ae) {
   2:             throw new EJBException(ae);
   3:         }
   4:         ...
   5:         } catch (AdminOrderDAOException ae) {
   6:             throw new EJBException("AdminOrders: AdminOrderDAOException" + ae);
   7:         }
   8:     }
   9: }

View Full Code Here
   1:         } catch (DataAccessException e) {
   2:             throw new EJBException("ProdutoBean-<init>(): " + e);
   3:         }
   4:         ...
   5:         } catch (DataAccessException e) {
   6:             throw new EJBException("ProdutoBean-ejbRemove(): " + e);
   7:         }
   8:         ...
   9:         } catch (DataAccessException e) {
  10:             throw new EJBException("ProdutoBean-ejbLoad(): " + e);
  11:         }

View Full Code Here
   1:     catch(NamingException e) {
   2:       throw new javax.ejb.EJBException("ClerkBean : setSessionContext() : Naming Exception - " + e);
   3:     }
   4:         ...
   5:     catch (Exception xe) {
   6:       throw new javax.ejb.EJBException("ClerkBean : setSessionContext() : failed with exception : " +  xe.getMessage());
   7:     }
   8:         ...
   9:     catch (Exception xe) {
  10:       throw new javax.ejb.EJBException("ClerkBean : createClaim() : failed with exception : " +  xe.getMessage());
  11:     }

View Full Code Here
   1:         } catch (RemoteException ex) {
   2:              throw new EJBException(": " + ex.getMessage());
   3:         } 
   4:         ...
   5:         } catch (RemoteException ex) {
   6:              throw new EJBException("getDetails: " + ex.getMessage());
   7:         } 
   8:         ...
   9:         } catch (Exception ex) {
  10:             throw new EJBException(ex.getMessage());
  11:         }

View Full Code Here

EJBException

public EJBException(String message,
                    Exception e)
Usages and Demos :

View More Examples of EJBException(String message,Exception e)
   1:       {
   2:          throw new EJBException("????? QueueMDB???", e);
   3:       }    
   4:     }
   5:     

View Full Code Here
   1:         } catch (NamingException ex) {
   2:             throw new EJBException("setSessionContext", ex);
   3:         }
   4:     }
   5:     

View Full Code Here
   1:         {
   2:            throw new EJBException("ADE", a);
   3:         }
   4:      }
   5:   }

View Full Code Here
   1:          SecurityException e = new SecurityException(msg);
   2:          throw new EJBException("checkSecurityAssociation", e);
   3:       }
   4:         ...
   5:          SecurityException e = new SecurityException(msg);
   6:          throw new EJBException("checkSecurityAssociation", e);
   7:       }
   8:         ...
   9:             SecurityException e = new SecurityException(msg);
  10:             throw new EJBException("checkSecurityAssociation", e);
  11:          }

View Full Code Here
   1:       {
   2:          throw new EJBException("Interrupted", e);
   3:       }
   4:    }

View Full Code Here

Method Details

getCausedByException

public Exception getCausedByException()
Usages and Demos :

View More Examples of getCausedByException()
   1: 
   2: import javax.ejb.EJBException;
   3: import javax.naming.*;
   4:         ...
   5:                     + serverExceptionCause,
   6:                 serverExceptionCause instanceof EJBException);
   7: 
   8:         ...
   9:             EJBException ejbException =
  10:                 (EJBException) serverExceptionCause;
  11:         ...
  12:             Exception ejbExceptionCause =
  13:                 ejbException.getCausedByException();

View Full Code Here
   1: import javax.transaction.*;
   2: import javax.ejb.EJBException;
   3: import javax.ejb.NoSuchObjectLocalException;
   4:         ...
   5:             mapped = false;
   6:         } else if ( exception instanceof EJBException ) {
   7:         ...
   8:             EJBException ex = (EJBException) exception;
   9:             exception = new RemoteException(ex.getMessage(),
  10:         ...
  11:                                 ex.getCausedByException());

View Full Code Here