ReadOnlyBufferException.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 43
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A ➔ ReadOnlyBufferException 0 3 1
1
// ReadOnlyBufferException.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 UnsupportedOperationException = require(path.join(__dirname, "UnsupportedOperationException.js"));
11
12
// :: BASIC SETUP
13
14
/**
15
 * Thrown to indicate a problem with time-zone configuration.
16
 * @param {String} message - The message describing the <tt>ReadOnlyBufferException</tt>.
17
 * @param {Number} code - The unique code that identifies the cause of the <tt>ReadOnlyBufferException</tt>.
18
 * @augments UnsupportedOperationException
19
 * @constructor
20
 * @see https://docs.oracle.com/javase/8/docs/api/java/nio/ReadOnlyBufferException.html
21
 */
22 1
const ReadOnlyBufferException = function (message, code) {
23 197
	UnsupportedOperationException.call(this, message, code);
24
};
25
26
// :: INHERITANCE
27
28
// set the UnsupportedOperationException 'class' as the parent in the prototype chain
29 1
ReadOnlyBufferException.prototype             = Object.create(UnsupportedOperationException.prototype);
30 1
ReadOnlyBufferException.prototype.constructor = UnsupportedOperationException;
31
32
// :: PROTOTYPE
33
34
/**
35
 * The name used to identify a <tt>ReadOnlyBufferException</tt>.
36
 * @type {String}
37
 * @default
38
 */
39 1
ReadOnlyBufferException.prototype.name = "ReadOnlyBufferException";
40
41
// :: EXPORT
42
43
// export the ReadOnlyBufferException 'class'
44
module.exports = ReadOnlyBufferException;