catchClause abstract method

CatchClause catchClause(
  1. Token? onKeyword,
  2. TypeAnnotation? exceptionType,
  3. Token? catchKeyword,
  4. Token? leftParenthesis,
  5. SimpleIdentifier? exceptionParameter,
  6. Token? comma,
  7. SimpleIdentifier? stackTraceParameter,
  8. Token? rightParenthesis,
  9. Block body
)

Returns a newly created catch clause. The onKeyword and exceptionType can be null if the clause will catch all exceptions. The comma and stackTraceParameter can be null if the stack trace parameter is not defined.

Implementation

CatchClause catchClause(
    Token? onKeyword,
    TypeAnnotation? exceptionType,
    Token? catchKeyword,
    Token? leftParenthesis,
    SimpleIdentifier? exceptionParameter,
    Token? comma,
    SimpleIdentifier? stackTraceParameter,
    Token? rightParenthesis,
    Block body);