@sap/eslint-plugin-cds
Version:
ESLint plugin including recommended SAP Cloud Application Programming model and environment rules
18 lines (15 loc) • 378 B
JavaScript
/**
* Error class used to indicate assertion errors in this plugin.
* For example, if we need to validate some object structure at
* runtime and find issues that we need to report.
*/
class CdsLintAssertionError extends Error {
constructor(msg) {
super(msg)
this.code = 'CDS_LINT_ASSERTION_ERROR'
}
}
module.exports = {
CdsLintAssertionError,
}