UNPKG

@mikro-orm/core

Version:

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.

9 lines (8 loc) 284 B
import { DriverException } from '../exceptions.js'; /** Converts native database errors into standardized DriverException instances. */ export class ExceptionConverter { /* v8 ignore next */ convertException(exception) { return new DriverException(exception); } }