catchClause abstract method
CatchClause
catchClause(
- Token? onKeyword,
- TypeAnnotation? exceptionType,
- Token? catchKeyword,
- Token? leftParenthesis,
- SimpleIdentifier? exceptionParameter,
- Token? comma,
- SimpleIdentifier? stackTraceParameter,
- Token? rightParenthesis,
- 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);