ConcurrentModificationException.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 44
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 1
c 1
b 0
f 0
nc 1
mnd 0
bc 1
fnc 1
dl 0
loc 44
ccs 8
cts 8
cp 1
crap 0
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A ➔ ConcurrentModificationException 0 3 1
1
// ConcurrentModificationException.js
2
"use strict";
3
4
// :: DEPENDENCIES
5
6
// load native dependencies
7 1
const path = require("path");
8
9
// load local dependencies
10 1
const RuntimeException = require(path.join(__dirname, "RuntimeException.js"));
11
12
// :: BASIC SETUP
13
14
/**
15
 * This exception may be thrown by methods that have detected concurrent modification of an object when such
16
 * modification is not permissible.
17
 * @param {String} message - The message describing the <tt>ConcurrentModificationException</tt>.
18
 * @param {Number} code - The unique code that identifies the cause of the <tt>ConcurrentModificationException</tt>.
19
 * @augments RuntimeException
20
 * @constructor
21
 * @see https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html
22
 */
23 1
const ConcurrentModificationException = function (message, code) {
24 196
	RuntimeException.call(this, null, message, code);
25
};
26
27
// :: INHERITANCE
28
29
// set the RuntimeException 'class' as the parent in the prototype chain
30 1
ConcurrentModificationException.prototype             = Object.create(RuntimeException.prototype);
31 1
ConcurrentModificationException.prototype.constructor = RuntimeException;
32
33
// :: PROTOTYPE
34
35
/**
36
 * The name used to identify an <tt>ConcurrentModificationException</tt>.
37
 * @type {String}
38
 * @default
39
 */
40 1
ConcurrentModificationException.prototype.name = "ConcurrentModificationException";
41
42
// :: EXPORT
43
44
// export the ConcurrentModificationException 'class'
45
module.exports = ConcurrentModificationException;