1 | 'use strict';
|
2 |
|
3 | var util = require('util');
|
4 |
|
5 | function UnverifiedContextError(ctx) {
|
6 | Error.captureStackTrace(this, this.constructor);
|
7 | this.message = 'Unverified Auth Context';
|
8 | this.name = 'UnverifiedContextError';
|
9 | this.ctx = ctx;
|
10 | }
|
11 | util.inherits(UnverifiedContextError, Error);
|
12 |
|
13 | function ExpiredContextError(ctx) {
|
14 | Error.captureStackTrace(this, this.constructor);
|
15 | this.message = 'Auth Context has expired';
|
16 | this.name = 'ExpiredContextError';
|
17 | this.ctx = ctx;
|
18 | }
|
19 | util.inherits(ExpiredContextError, Error);
|
20 |
|
21 | module.exports = {
|
22 | UnverifiedContextError: UnverifiedContextError,
|
23 | ExpiredContextError: ExpiredContextError
|
24 | };
|