UNPKG

@sap/xsodata

Version:

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

27 lines (23 loc) 636 B
'use strict'; var util = require('util'); var 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);