UNPKG

851 BJavaScriptView Raw
1/**
2 * @file Defines the ExpiredSessionTokenError class.
3 */
4
5"use strict";
6
7const SessionTokenError = require( "./abstract/SessionTokenError" );
8
9/**
10 * This error is thrown whenever a provided session token has expired.
11 *
12 * @memberOf Errors
13 * @extends Errors.Abstract.SessionTokenError
14 */
15class ExpiredSessionTokenError extends SessionTokenError {
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 = ExpiredSessionTokenError;