Home > Guides > Core Developers Guide > Interceptors > Conversion Error Interceptor

The Struts 2 conversion error interceptor is a subclass of the XWork 2 conversion error interceptor.

From the Javadocs of the XWork 2 interceptor:

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

From the Javadocs of the Struts 2 interceptor:

This interceptor extends ConversionErrorInterceptor but only adds conversion errors from the ActionContext to the field errors of the action if the field value is not null, "", or {""} (a size 1 String array with only an empty String). See ConversionErrorInterceptor for more information, as well as the Type Conversion documentation.

Parameters

    • None

    Extending the Interceptor

    There are no known extension points for this interceptor.

    Examples