-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexception-http.ts
More file actions
28 lines (25 loc) · 714 Bytes
/
exception-http.ts
File metadata and controls
28 lines (25 loc) · 714 Bytes
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
27
28
/**
* @file Data Transfer Objects - HttpExceptionDTO
* @module exceptions/dtos/HttpExceptionDTO
*/
import type {
JsonifiableObject,
Nullable,
ObjectPlain
} from '@flex-development/tutils'
import type ExceptionDTO from './exception'
/**
* `HttpException` data transfer object.
*
* @template T - Aggregated error type
* @template Cause - Exception cause type
* @template Code - Exception code type
*
* @extends {ExceptionDTO<T,Cause>}
*/
interface HttpExceptionDTO<
T extends ObjectPlain = JsonifiableObject,
Cause extends ObjectPlain = JsonifiableObject,
Code extends Nullable<number | string> = string
> extends ExceptionDTO<T, Cause, Code> {}
export type { HttpExceptionDTO as default }