Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/allo_arguments/src/Arguments.ts>Arguments.rethrowUnprintableException

🦕 Super handy cli argument parser with automate generation `--help` flag.
Go to Latest
method Arguments.rethrowUnprintableException
import { Arguments } from "https://deno.land/x/allo_arguments@v6.0.5/src/Arguments.ts";

Trows the error if it is not instance of PrintableException class.

Examples

Example 1

try {
   // ...
} catch (error) {
  Arguments.throwIfNotPrintable(error);
}

Parameters

error: Error