Annotation Type CatchAndLog


  • @Target(METHOD)
    @Retention(RUNTIME)
    public @interface CatchAndLog
    This annotation tells the agent to wrap a method with a try/catch block so that any exceptions it throws are logged but never raised to callers. Right now only methods with a void return type are supported. Traced methods implicitly have this behavior. This annotation should only be used on new helper methods. A common use case is to add this annotation to methods implemented in a listener so that callbacks to the listener don't throw exceptions to the calling application code.