1 | 'use strict';
|
2 | const NestedError = require('nested-error-stacks');
|
3 |
|
4 | class CpFileError extends NestedError {
|
5 | constructor(message, nested) {
|
6 | super(message, nested);
|
7 | Object.assign(this, nested);
|
8 | this.name = 'CpFileError';
|
9 | }
|
10 | }
|
11 |
|
12 | module.exports = CpFileError;
|