mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-03 23:36:21 +02:00
13 lines
252 B
JavaScript
13 lines
252 B
JavaScript
'use strict';
|
|
const NestedError = require('nested-error-stacks');
|
|
|
|
class CpyError extends NestedError {
|
|
constructor(message, nested) {
|
|
super(message, nested);
|
|
Object.assign(this, nested);
|
|
this.name = 'CpyError';
|
|
}
|
|
}
|
|
|
|
module.exports = CpyError;
|