This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?