UNPKG

861 BJavaScriptView Raw
1/**
2 * @file Defines the ContextDataResolutionError class.
3 */
4
5"use strict";
6
7const ContextDataError = require( "./abstract/ContextDataError" );
8
9/**
10 * This error is thrown when a required context data value cannot be resolved.
11 *
12 * @memberOf Errors
13 * @extends Errors.Abstract.ContextDataError
14 */
15class ContextDataResolutionError 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
31module.exports = ContextDataResolutionError;