Package com.jcabi.aspects
Annotation Type Loggable.Quiet
-
@Documented @Retention(RUNTIME) @Target(TYPE) public static @interface Loggable.Quiet
Identifies an exception that is never logged byLoggable
if/when being thrown out of an annotated method.Sometimes exceptions are used as flow control instruments (although this may be considered as a bad practice in most casts). In such situations we don't want to flood log console with error messages. One of the options is to use
Loggable.ignore()
attribute to list all exception types that should be ignored. However, thisLoggable.Quiet
annotation is more convenient when we want to ignore one specific exception type in all situations.- Since:
- 0.8