Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 12 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | 'use strict' |
||
2 | |||
3 | export class DeviseError extends Error { |
||
4 | constructor (message) { |
||
5 | super(message) |
||
6 | this.name = 'DeviseError' |
||
7 | this.stack = new Error().stack |
||
8 | |||
9 | // Set the prototype explicitly. |
||
10 | Object.setPrototypeOf(this, DeviseError.prototype) |
||
11 | } |
||
12 | } |
||
13 |