Skip to main content
Module

x/dactyl/mod.ts>HttpException

Web framework for Deno, built on top of Oak 🦇
Latest
class HttpException
import { HttpException } from "https://deno.land/x/dactyl@v0.1.0-alpha/mod.ts";

General purpose HttpException export class, can be raised at any stage of the request lifecycle, resulting in oak appropriately handling the error. Expected JSON payload is:

{
  "error": "HttpException.error",
  "status": "HttpException.status"
}

Constructors

new
HttpException(status: Status, error: string | undefined)

Properties

private
error: string | undefined
private
status: Status

Methods

getError(): { error: string | undefined; status: Status; }

Constructors

new
HttpException(status: Status, error: string | undefined)

Properties

private
error: string | undefined
private
status: Status

Methods

getError(): { error: string | undefined; status: Status; }