Annotation Type LogExceptions


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public @interface LogExceptions
    Log all exceptions thrown out of this method.

    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.

    Since:
    0.1.10
    See Also:
    http://aspects.jcabi.com/