Passed
Push — main ( 737de9...a57663 )
by Pieter Epeüs
01:31 queued 11s
created

src/authentication-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
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
ccs 3
cts 3
cp 1

2 Functions

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