Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<rules>
    <exceptions>
        <exception>
            <matches>

                <!-- specifies a specific class or pattern which matches if it is equal to the exception class itself or any
                supertype or implemented interface -->
                <!--<exceptionClass>com.github.steveash.*</exceptionClass>-->

                <!-- a specific class from which the exception was originally thrown; can contain wildcards -->
                <!--<thrownFrom>java.lang.IllegalArgumentException</throwFrom>-->

                <!-- called-from a specific class+method that must be present in the stack frames; can contain wildcards -->
                <!--<calledFrom>com.github.*.StringUtils.convertInt</calledFrom>-->

                <!-- whether the message from an exception (or any exception in the caused by chain) matches the regular
                expression here -->
                <!--<messageMatches></messageMatches>-->

            </matches>
            <action>
                <!-- if you just want to control the whole text and replace it use this -->
                <!--<replaceMessage> Use this test instead </replaceMessage>-->

                <!-- replaces the message with a big flower box with some verbiage and the given hints -->
                <!--<addHint>Here's some hints to help</addHint>-->

                <!-- intercept and log the exception trace to slf4j-->
                <!--<writeToLog>true</writeToLog>-->
            </action>
        </exception>
    </exceptions>
</rules>
New to GrepCode? Check out our FAQ X