@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface LogExceptions
Add this annotation to the method you want to log. Any exception thrown
out of it will be logged through Logger
, for example:
@LogExceptions String load(URL url) throws IOException{ return url.getContent().toString(); }
This method will log its exception, if thrown.
Copyright © 2012–2014 jcabi.com. All rights reserved.