pg-error-codes-ts

1.0.1 • Public • Published

pg-error-codes-ts

  • pg-error-codes-ts is a enum of all error codes

Documentation

Usage

import {PG_ERROR} from 'pg-error-codes-ts/lib';

try {
    await repo.findOne('wrong_id');
} catch (e) {
    if (e.code == PG_ERROR.SOME_ERROR) // ... //
}
 

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i pg-error-codes-ts

    Weekly Downloads

    336

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    22.9 kB

    Total Files

    4

    Last publish

    Collaborators

    • whitered932