UNPKG

@sap/xsodata

Version:

Expose data from a HANA database as OData V2 service with help of .xsodata files.

27 lines (23 loc) 640 B
'use strict'; const util = require('util'); const InternalError = require('./internalError'); module.exports = SqlError; /** * Error during type convertion * @param message * @param context * @param cause * @param information * @constructor */ function SqlError(context, cause, information) { const errorText = 'Error while executing a DB query'; InternalError.call(this, errorText, context, cause); if (cause && cause.message) { this.message = `${errorText}: ${cause.message}`; } else { this.message = errorText; } this.information = information; } util.inherits(SqlError, InternalError);