UNPKG

849 BJavaScriptView Raw
1/**
2 * @file Defines the EndpointExecutionError class.
3 */
4
5"use strict";
6
7const EndpointError = require( "./abstract/EndpointError" );
8
9/**
10 * A generic error that indicates that a problem occurred during an endpoint
11 * execution.
12 *
13 * @memberOf Errors
14 * @extends Errors.Abstract.EndpointError
15 */
16class EndpointExecutionError extends EndpointError {
17
18 /**
19 * @param {Error} [cause] - An optional Error object that can be provided if
20 * this error was caused by another.
21 * @param {string} message - An error message that provides clients with a
22 * description of the error condition and, potentially, how it might be
23 * resolved.
24 * @param {...*} [args] - Printf style arguments for the message.
25 */
26 constructor( cause, message, ...args ) {
27
28 super( cause, message, ...args );
29 }
30}
31
32module.exports = EndpointExecutionError;