1 | // InvalidPathException.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 IllegalArgumentException = require(path.join(__dirname, "IllegalArgumentException.js")); |
|
11 | |||
12 | // :: BASIC SETUP |
||
13 | |||
14 | /** |
||
15 | * Unchecked exception thrown when path string cannot be converted into a Path because the path string contains invalid |
||
16 | * characters, or the path string is invalid for other file system specific reasons. |
||
17 | * @param {String} message - The message describing the <tt>InvalidPathException</tt>. |
||
18 | * @param {Number} code - The unique code that identifies the cause of the <tt>InvalidPathException</tt>. |
||
19 | * @augments IllegalArgumentException |
||
20 | * @constructor |
||
21 | * @see https://docs.oracle.com/javase/8/docs/api/java/nio/charset/InvalidPathException.html |
||
22 | */ |
||
23 | 1 | const InvalidPathException = function (message, code) { |
|
24 | 197 | IllegalArgumentException.call(this, message, code); |
|
25 | }; |
||
26 | |||
27 | // :: INHERITANCE |
||
28 | |||
29 | // set the IllegalArgumentException 'class' as the parent in the prototype chain |
||
30 | 1 | InvalidPathException.prototype = Object.create(IllegalArgumentException.prototype); |
|
31 | 1 | InvalidPathException.prototype.constructor = IllegalArgumentException; |
|
32 | |||
33 | // :: PROTOTYPE |
||
34 | |||
35 | /** |
||
36 | * The name used to identify a <tt>InvalidPathException</tt>. |
||
37 | * @type {String} |
||
38 | * @default |
||
39 | */ |
||
40 | 1 | InvalidPathException.prototype.name = "InvalidPathException"; |
|
41 | |||
42 | // :: EXPORT |
||
43 | |||
44 | // export the InvalidPathException 'class' |
||
45 | module.exports = InvalidPathException; |