# Package groovy.org.codenarc.rule.exceptions

- Class Summary
  Class | Description
  --- | ---
  CatchArrayIndexOutOfBoundsExceptionRule | Rule that checks for catching a ArrayIndexOutOfBoundsException
  CatchErrorRule | Rule that checks for catching a Error
  CatchExceptionRule | Rule that checks for catching a Exception
  CatchIllegalMonitorStateExceptionRule | Rule to trap when IllegalMonitorStateException is being caught.
  CatchIndexOutOfBoundsExceptionRule | Rule that checks for catching a IndexOutOfBoundsException
  CatchNullPointerExceptionRule | Rule that checks for catching a NullPointerException
  CatchRuntimeExceptionRule | Rule that checks for catching a RuntimeException
  CatchThrowableRule | Rule that checks for catching a Throwable
  CommonCatchAstVisitor | AstVisitor implementation that checks for catching an exception type specified in the constructor This is an internal class and its API is subject to change.
  CommonThrowAstVisitor | AstVisitor implementation that checks for throwing one of the exception type names specified in the constructor This is an internal class and its API is subject to change.
  ConfusingClassNamedExceptionAstVisitor |
  ConfusingClassNamedExceptionRule | This rule traps classes named exception that do not inherit from exception.
  ExceptionExtendsErrorAstVisitor |
  ExceptionExtendsErrorRule | Errors are system exceptions.
  ExceptionExtendsThrowableAstVisitor |
  ExceptionExtendsThrowableRule | Checks for classes that extend Throwable.
  ExceptionNotThrownAstVisitor |
  ExceptionNotThrownRule | Checks for an exception constructor call as the last statement within a catch block.
  MissingNewInThrowStatementAstVisitor |
  MissingNewInThrowStatementRule | A common Groovy mistake when throwing exceptions is to forget the new keyword.
  ReturnNullFromCatchBlockAstVisitor |
  ReturnNullFromCatchBlockRule | Returning null from a catch block often masks errors and requires the client to handle error codes.
  SwallowThreadDeathAstVisitor |
  SwallowThreadDeathRule | Detects code that catches java.lang.ThreadDeath without re-throwing it.
  ThrowErrorRule | Rule that checks for throwing an instance of java.lang.Error
  ThrowExceptionRule | Rule that checks for throwing an instance of java.lang.Exception
  ThrowNullPointerExceptionRule | Rule that checks for throwing an instance of java.lang.NullPointerException
  ThrowRuntimeExceptionRule | Rule that checks for throwing an instance of java.lang.RuntimeException
  ThrowThrowableRule | Rule that checks for throwing an instance of java.lang.Throwable