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

AuthenticationError   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1

2 Functions

Rating   Name   Duplication   Size   Complexity  
A errorStatus 0 3 1
A 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