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

TimeoutError.name   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
ccs 1
cts 1
cp 1
c 0
b 0
f 0
rs 10
cc 1
crap 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