deno.land / x / servest@v1.3.4 / error.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2019-2020 Yusuke Sakurai. All rights reserved. MIT license.import { STATUS_TEXT } from "./vendor/https/deno.land/std/http/http_status.ts";export class RoutingError extends Error { constructor(readonly status: number, msg?: string) { super(msg ?? STATUS_TEXT.get(status) ?? ""); }}export class UnexpectedEofError extends Error { constructor(msg = "unexpected eof") { super(msg); }}
/** error that is thrown when tcp connection is closed */export class ConnectionClosedError extends Error { constructor(msg = "connection closed") { super(msg); }}
export class TimeoutError extends Error { constructor(msg = "operation timeout") { super(msg); }}
servest

Version Info

Tagged at
2 years ago