/// import type { HttpContext } from '@adonisjs/core/http'; /** * The "E_UNAUTHORIZED_ACCESS" exception is raised when unable to * authenticate an incoming HTTP request. * * The "error.guardDriverName" can be used to know the driver which * raised the error. */ export declare const E_UNAUTHORIZED_ACCESS: { new (message: string, options: { redirectTo?: string; guardDriverName: string; }): { /** * Endpoint to redirect to. Only used by "session" driver * renderer */ redirectTo?: string | undefined; /** * Translation identifier. Can be customized */ identifier: string; /** * The guard name reference that raised the exception. It allows * us to customize the logic of handling the exception. */ guardDriverName: string; /** * A collection of renderers to render the exception to a * response. * * The collection is a key-value pair, where the key is * the guard driver name and value is a factory function * to respond to the request. */ renderers: Record Promise | void>; /** * Returns the message to be sent in the HTTP response. * Feel free to override this method and return a custom * response. */ getResponseMessage(error: any, ctx: HttpContext): string; /** * Converts exception to an HTTP response */ handle(error: any, ctx: HttpContext): Promise; name: string; help?: string | undefined; code?: string | undefined; status: number; toString(): string; readonly [Symbol.toStringTag]: string; message: string; stack?: string | undefined; cause?: unknown; }; status: number; code: string; help?: string | undefined; message?: string | undefined; captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; }; /** * Exception is raised when user credentials are invalid */ export declare const E_INVALID_CREDENTIALS: { new (message?: string | undefined, options?: (ErrorOptions & { code?: string | undefined; status?: number | undefined; }) | undefined): { /** * Translation identifier. Can be customized */ identifier: string; /** * Returns the message to be sent in the HTTP response. * Feel free to override this method and return a custom * response. */ getResponseMessage(error: any, ctx: HttpContext): string; /** * Converts exception to an HTTP response */ handle(error: any, ctx: HttpContext): Promise; name: string; help?: string | undefined; code?: string | undefined; status: number; toString(): string; readonly [Symbol.toStringTag]: string; message: string; stack?: string | undefined; cause?: unknown; }; status: number; code: string; help?: string | undefined; message?: string | undefined; captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; };