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