Package: org.codehaus.groovy.ast.stmt

## [Java] Class CatchStatement

- org.codehaus.groovy.ast.stmt.CatchStatement

-     public class CatchStatement
      extends Statement

  Represents a catch (Exception var) { } statement

- - ### Constructor Summary

    Constructors
    Constructor and description
    `CatchStatement(Parameter variable, Statement code)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Statement` | `getCode()`
    `` | `public ClassNode` | `getExceptionType()`
    `` | `public Parameter` | `getVariable()`
    `` | `public void` | `setCode(Statement code)`
    `` | `public void` | `visit(GroovyCodeVisitor visitor)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Statement` | `addStatementLabel, copyStatementLabels, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel`
    `class ASTNode` | `copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit`

- - ### Constructor Detail

    - #### public CatchStatement(Parameter variable, Statement code)

  - ### Method Detail

    - #### public Statement getCode()

    - #### public ClassNode getExceptionType()

    - #### public Parameter getVariable()

    - #### public void setCode(Statement code)

    - #### @Override
      public void visit(GroovyCodeVisitor visitor)