Re: Wrapped exceptions

2024-04-04 Thread Piotr P. Karwasz
Hi Ralph, On Thu, 4 Apr 2024 at 21:01, Ralph Goers wrote: > I really have no idea why but this is the first time I have heard someone ask > for the ability to filter based on the Exception class. This came out at least once before: see the SO "Log4j - How to log specific exception into a

Re: Wrapped exceptions

2024-04-04 Thread Volkan Yazıcı
You should be able to describe this logic in your scripting language of preference using a ScriptFilter in your Log4j configuration file. On Thu, Apr 4, 2024 at 5:27 PM Robert Egan wrote: > I am currently working with an

Re: Wrapped exceptions

2024-04-04 Thread Ralph Goers
I really have no idea why but this is the first time I have heard someone ask for the ability to filter based on the Exception class. We haven’t implemented a Filter to do this but I would imagine it could easily be done. I would imagine it would: a) let you specify a list of Exception classes

Wrapped exceptions

2024-04-04 Thread Robert Egan
I am currently working with an application that wraps every exception in a general exception. The problem is, there are some errors I can address (configuration errors, user errors, etc) and some I cannot address (network errors, database errors, etc). But they are all wrapped in the general

Re: [External] Re: Wrapped exceptions

2024-04-04 Thread Robert Egan
I suspect the reason it never came up is because wrapping all your exceptions in a general exception is considered a poor design. But sometimes you have to play the hand you're dealt. I think I'll probably go with a Script filter, as suggested by another respondent. Robert Egan -- *VSolvit LLC*,