1 | /**
|
2 | * @file Defines the InvalidContextKeyError class.
|
3 | */
|
4 |
|
5 | ;
|
6 |
|
7 | const ContextDataError = require( "./abstract/ContextDataError" );
|
8 |
|
9 | /**
|
10 | * This error is thrown when an invalid context key is referenced.
|
11 | *
|
12 | * @memberOf Errors
|
13 | * @extends Errors.Abstract.ContextDataError
|
14 | */
|
15 | class InvalidContextKeyError extends ContextDataError {
|
16 |
|
17 | /**
|
18 | * @param {Error} [cause] - An optional Error object that can be provided if
|
19 | * this error was caused by another.
|
20 | * @param {string} message - An error message that provides clients with a
|
21 | * description of the error condition and, potentially, how it might be
|
22 | * resolved.
|
23 | * @param {...*} [args] - Printf style arguments for the message.
|
24 | */
|
25 | constructor( cause, message, ...args ) {
|
26 |
|
27 | super( cause, message, ...args );
|
28 | }
|
29 | }
|
30 |
|
31 | module.exports = InvalidContextKeyError;
|
32 |
|