Source

xwork / src / test / com / opensymphony / xwork / config / providers / xwork-test-exception-mappings.xml

Full commit
<!DOCTYPE xwork PUBLIC
    "-//OpenSymphony Group//XWork 1.1.1//EN"
    "http://www.opensymphony.com/xwork/xwork-1.1.dtd"
 >

<xwork>
    <package name="default">
        <result-types>
            <result-type name="chain" class="com.opensymphony.xwork.ActionChainResult" default="true"/>
            <result-type name="mock" class="com.opensymphony.xwork.mock.MockResult"/>
        </result-types>

        <global-results>
            <!-- should be chain type since it is the default -->
            <result name="login">login</result>
        </global-results>

        <global-exception-mappings>
            <exception-mapping exception="java.lang.RuntimeException" result="runForDeeHillz"/>
            <exception-mapping exception="com.opensymphony.xwork.XworkException" result="xworkNaughty"/>
        </global-exception-mappings>

        <action name="Bar" class="com.opensymphony.xwork.SimpleAction">
            <exception-mapping exception="com.opensymphony.xwork.SpookyException" result="spooky-result"/>
            <result name="spooky-result" type="mock"/>
            <result name="specificLocationResult">
                <param name="actionName">bar.vm</param>
            </result>
        </action>

    </package>
</xwork>