Annotation Type ExceptionWrapper


@Documented @Target(TYPE) @Retention(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

    Required Elements
    Modifier and Type
    Required Element
    Description
    Return the prefix used in front of the numeric exception ID in the formatter exception message.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Return the logger name to be used for all logged messages generated from the class.
    Return the name of the ResourceBundle to use for I18N support for exceptions in this class.
  • Element Details

    • idPrefix

      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

      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

      String resourceBundle
      Return the name of the ResourceBundle to use for I18N support for exceptions in this class.
      Returns:
      The bundle name.
      Default:
      ""