Passed
Branch feature/first-draft (521840)
by Pieter Epeüs
02:27
created

src/not-implemented-error.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 15
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 15
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

2 Functions

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