Annotation Interface ExceptionMapping


@Retention(RUNTIME) @Target(TYPE) public @interface ExceptionMapping

Adds an exception mapping to an action

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • result

      String result
      Returns:
      Result name
    • exception

      String exception
      Returns:
      Class name of the exception to be thrown
    • params

      String[] params
      Returns:
      The parameters passed to the exception. This is a list of strings that form a name/value pair chain since creating a Map for annotations is not possible. An example would be: {"key", "value", "key2", "value2"}.
      Default:
      {}