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
      java.lang.String idPrefix
      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
      java.lang.String loggerName
      Return the logger name to be used for all logged messages generated from the class.
      java.lang.String resourceBundle
      Return the name of the ResourceBundle to use for I18N support for exceptions in this class.
    • Element Detail

      • idPrefix

        java.lang.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

        java.lang.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

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