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