Venkat Raman Parasuraman wrote:Yes. I dont want ObjectNotFoundException in the AOP log file. It must be suppressed not being written anywhere
Actually, it's good to have ObjectNotFoundException (or any exceptions) appears in the log file.
But if you really don't want...
I don't know how do you implement this AOP logging, but when an exception is thrown eventually some code will catch it, right? I imagine that the code (AOP or not) that catches it will log this exception, so can you add code to check that if type of the exception is ObjectNotFoundException then not log it?
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional