import { StormError } from './StormError'; import { StatusCode } from './StatusCode'; export declare class DatabaseQueryError extends StormError<{ query: string; error: any; }> { constructor(query: string, error: any); getMessage(): string; getCode(): number; /** * If the underlying error is a database error, then * returns the database error code as sting. * @since 8.5.0 */ getDBErrorCode(): string | null; getHTTPCode(): StatusCode; getLocaleCode(): string; }