@xvia/amplia-client
Version:
Classes to consume Lacuna Software's Amplia
17 lines (13 loc) • 337 B
JavaScript
;
class OrderLocketError extends Error {
constructor(message, innerError = null) {
super(message);
this._name = this.constructor.name;
// Build stack trace.
Error.captureStackTrace(this, this.constructor);
if (innerError && innerError.stack) {
this.stack += '\n';
this.stack += innerError.stack;
}
}
}