org.glassfish.gmbal.logex
Annotation Type Message


@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Message

This annotation is applied to an interface or abstract class that is used to define methods for logging and/or constructing exceptions.


Optional Element Summary
 String value
          Define the Log message to be generated for this exception.
 

value

public abstract String value
Define the Log message to be generated for this exception. The default format is "name: arg1={1} ..." where name is the annotated Method name and each arg is listed after the name. The default format is also used if this annotation is not present.

Default:
""


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.