Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Methods

Gets this try statement's catch clause or undefined if none exists.

getCatchClauseOrThrow(message?: string | (() => string)): CatchClause

Gets this try statement's catch clause or throws if none exists.

getFinallyBlock(): Block | undefined

Gets this try statement's finally block or undefined if none exists.

getFinallyBlockOrThrow(message?: string | (() => string)): Block

Gets this try statement's finally block or throws if none exists.

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

Gets this try statement's try block.