Skip to main content
Module

x/ts_morph/mod.ts>TryStatement#getCatchClauseOrThrow

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method TryStatement.prototype.getCatchClauseOrThrow
import { TryStatement } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";

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

Parameters

optional
message: string | (() => string)