org.glassfish.gmbal.logex
Annotation Type ExceptionWrapper


@Documented
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ExceptionWrapper

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


Required Element Summary
 String idPrefix
          Return the prefix used in front of the numeric exception ID in the formatter exception message.
 
Optional Element Summary
 String loggerName
          Return the logger name to be used for all logged messages generated from the class.
 String resourceBundle
          Return the name of the ResourceBundle to use for I18N support for exceptions in this class.
 

Element Detail

idPrefix

public abstract String idPrefix
Return the prefix used in front of the numeric exception ID in the formatter exception message. For example, CORBA uses IIOP for this purpose.

Returns:
The log messaged ID prefix

loggerName

public abstract String loggerName
Return the logger name to be used for all logged messages generated from the class. Default is the package in which the class is defined.

Returns:
The logger name.
Default:
""

resourceBundle

public abstract String resourceBundle
Return the name of the ResourceBundle to use for I18N support for exceptions in this class.

Returns:
The bundle name.
Default:
""


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