Skip to main content
Module

x/deno2node/src/deps.deno.ts>CatchClause

Compile your Deno project to run on Node.js.
Go to Latest
class CatchClause
extends CatchClauseBase<ts.CatchClause>
import { CatchClause } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

Gets this catch clause's block.

getParent(): NodeParentType<ts.CatchClause>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.CatchClause>>

Gets this catch clause's variable declaration or undefined if none exists.

getVariableDeclarationOrThrow(message?: string | (() => string)): VariableDeclaration

Gets this catch clause's variable declaration or throws if none exists.