Passed
Branch master (b8a2ae)
by Samson
02:23
created

src/Exception/NotAnIntegerArgumentException.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 5
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
eloc 3
nc 1
dl 0
loc 5
rs 10
c 1
b 0
f 0
wmc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A NotAnIntegerArgumentException.js ➔ constructor 0 3 1
1
/**
2
 * Class NotAnIntegerArgumentException.
3
 *
4
 * @author Sam As End <4sam21{at}gmail.com>
5
 */
6
module.exports = class NotAnIntegerArgumentException extends Error {
0 ignored issues
show
Bug introduced by
The variable Error seems to be never initialized.
Loading history...
7
    constructor($argument) {
8
        super(`Not an integer!, ${typeof $argument} given.`);
9
    }
10
};
11