prorm API Reference
    Preparing search index...

    Function wrapError

    • Wraps a database error into the appropriate Prorm error type

      Parameters

      • error: Error

        The original error from the database

      • Optionalsql: string

        The SQL query that caused the error

      Returns PrormError

      The appropriate Prorm error