1 | /**
|
2 | * @file Defines the MissingSessionTokenError class.
|
3 | */
|
4 |
|
5 | ;
|
6 |
|
7 | const SessionTokenError = require( "./abstract/SessionTokenError" );
|
8 |
|
9 | /**
|
10 | * This error is thrown whenever a session token is required, but cannot be
|
11 | * found.
|
12 | *
|
13 | * @memberOf Errors
|
14 | * @extends Errors.Abstract.SessionTokenError
|
15 | */
|
16 | class MissingSessionTokenError extends SessionTokenError {
|
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 |
|
32 | module.exports = MissingSessionTokenError;
|