1 | /**
|
2 | * @file Defines the SourcePathNotDefinedError class.
|
3 | */
|
4 |
|
5 | ;
|
6 |
|
7 | const PathNotDefinedError = require( "@corefw/common" )
|
8 | .errors.PathNotDefinedError;
|
9 |
|
10 | /**
|
11 | * This error is thrown whenever a path is defined as being relative to another
|
12 | * source path that, itself, has not been defined.
|
13 | *
|
14 | * @memberOf Errors
|
15 | * @extends Errors.Abstract.PathNotDefinedError
|
16 | */
|
17 | class SourcePathNotDefinedError extends PathNotDefinedError {
|
18 |
|
19 | /**
|
20 | * @param {Error} [cause] - An optional Error object that can be provided if
|
21 | * this error was caused by another.
|
22 | * @param {string} message - An error message that provides clients with a
|
23 | * description of the error condition and, potentially, how it might be
|
24 | * resolved.
|
25 | * @param {...*} [args] - Printf style arguments for the message.
|
26 | */
|
27 | constructor( cause, message, ...args ) {
|
28 |
|
29 | super( cause, message, ...args );
|
30 | }
|
31 | }
|
32 |
|
33 | module.exports = SourcePathNotDefinedError;
|