UNPKG

mvom

Version:

Multivalue Object Mapper

15 lines (14 loc) 568 B
import type { DbErrorCodes } from '../constants'; import BaseError from './BaseError'; interface DbServerErrorConstructorOptionsMessage { message: string; } interface DbServerErrorConstructorOptionsCode { errorCode: DbErrorCodes; } type DbServerErrorConstructorOptions = DbServerErrorConstructorOptionsMessage | DbServerErrorConstructorOptionsCode; /** Error thrown when an error is encountered on the database server */ declare class DbServerError extends BaseError { constructor(options: DbServerErrorConstructorOptions); } export default DbServerError;