1
|
|
|
// index.js |
2
|
|
|
"use strict"; |
3
|
|
|
|
4
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
5
|
|
|
* Copyright (C) EgaLabs, Inc - All Rights Reserved * |
6
|
|
|
* Unauthorized copying of this file, either completely or partially, via any medium, is strictly prohibited. * |
7
|
|
|
* Proprietary and confidential. * |
8
|
|
|
* Written by Esaú García Sánchez-Torija <[email protected]>, March 2017 * |
9
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
10
|
|
|
|
11
|
|
|
// :: DEPENDENCIES |
12
|
|
|
|
13
|
1 |
|
const path = require("path"); |
14
|
1 |
|
|
15
|
1 |
|
const Throwable = require(path.join(__dirname, "Throwable.js")); |
16
|
|
|
|
17
|
|
|
const Error2 = require(path.join(__dirname, "Error.js")); |
18
|
|
|
const Exception = require(path.join(__dirname, "Exception.js")); |
19
|
|
|
|
20
|
1 |
|
const RuntimeException = require(path.join(__dirname, "RuntimeException.js")); |
21
|
|
|
|
22
|
|
|
const ArithmeticException = require(path.join(__dirname, "ArithmeticException.js")); |
23
|
|
|
const ArrayStoreException = require(path.join(__dirname, "ArrayStoreException.js")); |
24
|
|
|
const BufferOverflowException = require(path.join(__dirname, "BufferOverflowException.js")); |
25
|
|
|
const BufferUnderflowException = require(path.join(__dirname, "BufferUnderflowException.js")); |
26
|
1 |
|
const ClassCastException = require(path.join(__dirname, "ClassCastException.js")); |
27
|
|
|
const CompletionException = require(path.join(__dirname, "CompletionException.js")); |
28
|
|
|
const ConcurrentModificationException = require(path.join(__dirname, "ConcurrentModificationException.js")); |
29
|
1 |
|
const DateTimeException = require(path.join(__dirname, "DateTimeException.js")); |
30
|
|
|
const EmptyStackException = require(path.join(__dirname, "EmptyStackException.js")); |
31
|
|
|
const IllegalArgumentException = require(path.join(__dirname, "IllegalArgumentException.js")); |
32
|
|
|
const IndexOutOfBoundsException = require(path.join(__dirname, "IndexOutOfBoundsException.js")); |
33
|
|
|
const MissingResourceException = require(path.join(__dirname, "MissingResourceException.js")); |
34
|
|
|
const NegativeArraySizeException = require(path.join(__dirname, "NegativeArraySizeException.js")); |
35
|
|
|
const NoSuchElementException = require(path.join(__dirname, "NoSuchElementException.js")); |
36
|
|
|
const NullPointerException = require(path.join(__dirname, "NullPointerException.js")); |
37
|
|
|
const UnsupportedOperationException = require(path.join(__dirname, "UnsupportedOperationException.js")); |
38
|
|
|
|
39
|
|
|
const DateTimeParseException = require(path.join(__dirname, "DateTimeParseException.js")); |
40
|
|
|
const ZoneRulesException = require(path.join(__dirname, "ZoneRulesException.js")); |
41
|
|
|
|
42
|
|
|
const IllegalCharsetNameException = require(path.join(__dirname, "IllegalCharsetNameException.js")); |
43
|
|
|
const UnsupportedCharsetException = require(path.join(__dirname, "UnsupportedCharsetException.js")); |
44
|
|
|
const InvalidPathException = require(path.join(__dirname, "InvalidPathException.js")); |
45
|
|
|
|
46
|
|
|
const ArrayIndexOutOfBoundsException = require(path.join(__dirname, "ArrayIndexOutOfBoundsException.js")); |
47
|
|
|
const StringIndexOutOfBoundsException = require(path.join(__dirname, "StringIndexOutOfBoundsException.js")); |
48
|
|
|
|
49
|
|
|
const ReadOnlyBufferException = require(path.join(__dirname, "ReadOnlyBufferException.js")); |
50
|
|
|
|
51
|
|
|
// :: EXPORT |
52
|
|
|
|
53
|
|
|
// export all classes |
54
|
|
|
const API = { |
55
|
|
|
ArithmeticException, ArrayIndexOutOfBoundsException, ArrayStoreException, |
56
|
|
|
BufferOverflowException, BufferUnderflowException, ClassCastException, |
57
|
|
|
CompletionException, ConcurrentModificationException, DateTimeException, |
58
|
|
|
DateTimeParseException, EmptyStackException, Error: Error2, |
59
|
|
|
Exception, IllegalArgumentException, IllegalCharsetNameException, |
60
|
|
|
IndexOutOfBoundsException, InvalidPathException, MissingResourceException, |
61
|
|
|
NegativeArraySizeException, NoSuchElementException, NullPointerException, |
62
|
|
|
ReadOnlyBufferException, RuntimeException, StringIndexOutOfBoundsException, |
63
|
|
|
Throwable, UnsupportedCharsetException, UnsupportedOperationException, |
64
|
|
|
ZoneRulesException |
65
|
|
|
}; |
66
|
|
|
|
67
|
|
|
// freeze the object to prevent modification |
68
|
|
|
const frozen = Object.freeze(API); |
69
|
|
|
|
70
|
|
|
// export the frozen object |
71
|
|
|
module.exports = frozen; |