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

x/sinco/tests/deps.ts>Drash.ErrorHandler#catch

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
method Drash.ErrorHandler.prototype.catch
import { Drash } from "https://deno.land/x/sinco@v4.1.0/tests/deps.ts";
const { ErrorHandler } = Drash;

Catch and handle the given error.

Parameters

error: Error
  • The Error object that is thrown during runtime.
_request: Request
  • The original request that threw the error. Note this is not that Drash.Request object. Reason being, the Drash.Request object can also throw an error and would not be available as a parameter.
response: Response
  • The Drash.Response object.