I don't know what you mean by "stop logging", you mean you don't want ObjectNotFoundException to appear in log or something else? If so why do you want to do that?
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
Venkat Raman Parasuraman
Joined: Oct 13, 2008
Yes. I dont want ObjectNotFoundException in the AOP log file. It must be suppressed not being written anywhere
Joined: Jul 05, 2005
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?