Passed
Push — main ( e27340...4f7116 )
by Pieter Epeüs
05:55 queued 02:22
created

src/timeout-error.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 15
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 8
mnd 0
bc 0
fnc 2
dl 0
loc 15
ccs 3
cts 3
cp 1
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

2 Functions

Rating   Name   Duplication   Size   Complexity  
A TimeoutError.errorStatus 0 3 1
A TimeoutError.name 0 3 1
1
import makeAppError from './app-error.js';
2
3 6
const AppError = makeAppError();
4
5
class TimeoutError extends AppError {
6
    get name() {
7 7
        return 'TimeoutError';
8
    }
9
10
    get errorStatus() {
11 4
        return 408;
12
    }
13
}
14
15
export default TimeoutError;
16