<?xml version="1.0"?>

<ruleset name="Strict Exceptions"
    xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
  <description>
These rules provide some strict guidelines about throwing and catching exceptions.
  </description>

    <!-- Rules, that have been moved into a category -->
    <rule ref="category/java/errorprone.xml/AvoidCatchingNPE" deprecated="true" />
    <rule ref="category/java/errorprone.xml/AvoidCatchingThrowable" deprecated="true" />
    <rule ref="category/java/errorprone.xml/AvoidLosingExceptionInformation" deprecated="true" />
    <rule ref="category/java/errorprone.xml/DoNotThrowExceptionInFinally" deprecated="true" />

    <rule ref="category/java/design.xml/AvoidCatchingGenericException" deprecated="true" />
    <rule ref="category/java/design.xml/AvoidRethrowingException" deprecated="true" />
    <rule ref="category/java/design.xml/AvoidThrowingNewInstanceOfSameException" deprecated="true" />
    <rule ref="category/java/design.xml/AvoidThrowingNullPointerException" deprecated="true" />
    <rule ref="category/java/design.xml/AvoidThrowingRawExceptionTypes" deprecated="true" />
    <rule ref="category/java/design.xml/DoNotExtendJavaLangError" deprecated="true" />
    <rule ref="category/java/design.xml/ExceptionAsFlowControl" deprecated="true" />
    <rule ref="category/java/design.xml/SignatureDeclareThrowsException" deprecated="true" />

</ruleset>
