Groovy Documentation

groovy.org.codenarc.rule.exceptions
[Groovy] Class ReturnNullFromCatchBlockRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.exceptions.ReturnNullFromCatchBlockRule

class ReturnNullFromCatchBlockRule
extends AbstractAstVisitorRule

Returning null from a catch block often masks errors and requires the client to handle error codes. In some coding styles this is discouraged.

Authors:
Hamlet D'Arcy


Property Summary
Class astVisitorClass

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation