• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Global and Local Exception Handling

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct me if I'm wrong, but shouldn't an action-local specified ExceptionHandler be called in-place-of the globally specified ExceptionHandler?

(Mine does the opposite)

I.E.


local (should be handled first?)
Also note that com.bs.ExceptionPopupDialogGeneralExceptionHandler,
calls it's parents' execute method to put the specified error message key in the request.



global (should not be handled if above is specifed for action?)


[ August 15, 2006: Message edited by: Andrew Leer ]
[ August 15, 2006: Message edited by: Andrew Leer ]
 
Andrew Leer
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Figured it out!

The problem lies in the fact that the Action didn't specifiy that it throws the specific type of exception:



Without specifiying this, the exception is caught by the global-exceptions.
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic