Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.apache.struts2.convention.annotation
Annotation Type ExceptionMapping

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

Adds an exception mapping to an action

Required Element Summary
`String` | `exception`
`String` | `result`

Optional Element Summary
`String[]` | `params`

Element Detail

### result

    public abstract String result

  Returns:
    Result name

### exception

    public abstract String exception

  Returns:
    Class name of the exception to be thrown

### params

    public abstract 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:
    {}

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.