UNPKG

@athenna/database

Version:

The Athenna database handler for SQL/NoSQL.

17 lines (16 loc) 547 B
/** * @athenna/database * * (c) João Lenon <lenon@athenna.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Exception } from '@athenna/common'; /** * Base class for all database constraint violations that are translated from * a driver-specific error into a normalized Athenna exception. Catch this to * handle any constraint violation regardless of the underlying database. */ export class ConstraintViolationException extends Exception { }