1 | import type { HttpContext } from '@adonisjs/core/http';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export declare const E_UNAUTHORIZED_ACCESS: {
|
10 | new (message: string, options: {
|
11 | redirectTo?: string;
|
12 | guardDriverName: string;
|
13 | }): {
|
14 | |
15 |
|
16 |
|
17 |
|
18 | redirectTo?: string;
|
19 | |
20 |
|
21 |
|
22 | identifier: string;
|
23 | |
24 |
|
25 |
|
26 |
|
27 | guardDriverName: string;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | renderers: Record<string, (message: string, error: any, ctx: HttpContext) => Promise<void> | void>;
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 | getResponseMessage(error: any, ctx: HttpContext): string;
|
43 | |
44 |
|
45 |
|
46 | handle(error: any, ctx: HttpContext): Promise<void>;
|
47 | name: string;
|
48 | help?: string;
|
49 | code?: string;
|
50 | status: number;
|
51 | toString(): string;
|
52 | readonly [Symbol.toStringTag]: string;
|
53 | message: string;
|
54 | stack?: string;
|
55 | cause?: unknown;
|
56 | };
|
57 | status: number;
|
58 | code: string;
|
59 | help?: string;
|
60 | message?: string;
|
61 | captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
62 | prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
63 | stackTraceLimit: number;
|
64 | };
|
65 | /**
|
66 | * Exception is raised when user credentials are invalid
|
67 | */
|
68 | export declare const E_INVALID_CREDENTIALS: {
|
69 | new (message?: string, options?: ErrorOptions & {
|
70 | code?: string;
|
71 | status?: number;
|
72 | }): {
|
73 | /**
|
74 | * Translation identifier. Can be customized
|
75 | */
|
76 | identifier: string;
|
77 | /**
|
78 | * Returns the message to be sent in the HTTP response.
|
79 | * Feel free to override this method and return a custom
|
80 | * response.
|
81 | */
|
82 | getResponseMessage(error: any, ctx: HttpContext): string;
|
83 | /**
|
84 | * Converts exception to an HTTP response
|
85 | */
|
86 | handle(error: any, ctx: HttpContext): Promise<void>;
|
87 | name: string;
|
88 | help?: string;
|
89 | code?: string;
|
90 | status: number;
|
91 | toString(): string;
|
92 | readonly [Symbol.toStringTag]: string;
|
93 | message: string;
|
94 | stack?: string;
|
95 | cause?: unknown;
|
96 | };
|
97 | status: number;
|
98 | code: string;
|
99 | help?: string;
|
100 | message?: string;
|
101 | captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
102 | prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
103 | stackTraceLimit: number;
|
104 | };
|
105 |
|
\ | No newline at end of file |