static error(options, err, context) {
        if (typeof options.error === 'function') {
            try {
                options.error(err, context);
            } catch (e) {
                // have to silence errors here;
                // throwing unhandled errors while handling an error
                // notification is simply not acceptable.
                Events.unexpected('error', e);
            }
        }
    }
@event error
@description
Global notification of every error encountered by this library.

The library will suppress any error thrown by the handler and write it into the console.

@param {*} err
The error encountered, of the same value and type as it was reported.

@param {EventContext} e
Event Context Object.

@example
const initOptions = {

    // pg-promise initialization options...

    error(err, e) {

        if (e.cn) {
            // this is a connection-related error
            // cn = safe connection details passed into the library:
            //      if password is present, it is masked by #
        }

        if (e.query) {
            // query string is available
            if (e.params) {
                // query parameters are available
            }
        }

        if (e.ctx) {
            // occurred inside a task or transaction
        }
      }
};