src/errors/index.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 12
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
eloc 7
nc 1
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2
mnd 0
bc 1
fnc 1
bpm 1
cpm 2
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.js ➔ constructor 0 8 1
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