Test Failed
Push — master ( 0888ee...91d545 )
by Dmytro
02:36
created

src/errors/Base.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 14
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
mnd 0
bc 0
fnc 2
dl 0
loc 14
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

2 Functions

Rating   Name   Duplication   Size   Complexity  
A CottusFormatError.hash 0 8 1
A CottusFormatError.setContext 0 3 1
1
export default class CottusFormatError extends Error {
2
    get hash() {
3
        return {
4
            value   : this.value,
5
            // path    : 'user.name',
6
            code    : this.code,
7
            message : this.message
8
        };
9
    }
10
11
    setContext(value) {
12
        this.value = value;
13
    }
14
}
15