Hi ,
  I am trying to throw a custom exception from a session bean
...

  | public class CustBeanException extends Exception implements Serializable{
  | 
  |   CustBeanException()
  |   {super();}
  | 
  |   CustBeanException(String str)
  |   {super(str);}
  | }
  | 
...
                try{
  |                             
  |                   
  |                     taskData = 
(TaskDetails)session.load(TaskDetails.class,strId);
  |                     }catch(HibernateException e)
  |                   {
  |                     throw (new CustBeanException("!!!***no data ***!!!!"));
  |                     }
  | 

But the caller is always getting EJBException? what i am doing wrong here?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901512#3901512

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901512


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to