Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Weird mocha/karma discrepancy on this import
const ExtendableError = require('es6-error').default || require('es6-error') // eslint-disable-line
// Module API
/**
* Base class for the all DataPackage/TableSchema errors.
*
* If there are more than one error you could get an additional information
* from the error object:
*
* ```javascript
* try {
* // some lib action
* } catch (error) {
* console.log(error) // you have N cast errors (see error.errors)
let ExtendableError = require("es6-error");
ExtendableError = ExtendableError.default || ExtendableError;
export default ExtendableError as typeof Error;