Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

exception handling

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am throwing a user defined exception from the DAO. it is being caught in the calling bean.
after catching the specific exception in the bean i catch the general exception.
by the time the exception reaches the bean it gets converted to general exception. as a result it is caught in the general exception catch and not in the specific exception catch.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
by the time the exception reaches the bean it gets converted to general exception.
Hi,
Can you elaborate bit more like Is there any appserver involved or EJB involved.
It may be that your User Defined Exception is comming trough a layer of EJB and getting converted to RemoteException<.So getting caught in general Exception block.
Please clarify, so that we reach at solution.
Cheers
[ January 13, 2003: Message edited by: Susil Parida ]
[ January 13, 2003: Message edited by: Susil Parida ]
 
and POOF! You're gone! But look, this tiny ad is still here:
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic