1 | /*
|
2 | * Licensed under the Apache License, Version 2.0 (the "License");
|
3 | * you may not use this file except in compliance with the License.
|
4 | * You may obtain a copy of the License at
|
5 | *
|
6 | * http://www.apache.org/licenses/LICENSE-2.0
|
7 | *
|
8 | * Unless required by applicable law or agreed to in writing, software
|
9 | * distributed under the License is distributed on an "AS IS" BASIS,
|
10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11 | * See the License for the specific language governing permissions and
|
12 | * limitations under the License.
|
13 | */
|
14 |
|
15 | ;
|
16 |
|
17 | const CompilerException = require('./compilerexception');
|
18 |
|
19 | /**
|
20 | * Exception throws when the ergo compiler throws a system error
|
21 | * @extends CompilerException
|
22 | * @see See {@link CompilerException}
|
23 | * @class
|
24 | * @memberof module:ergo-compiler
|
25 | * @private
|
26 | */
|
27 | class SystemException extends CompilerException {
|
28 |
|
29 | /**
|
30 | * Create a SystemException
|
31 | * @param {String} message - the message for the exception
|
32 | * @param {Object} fileLocation - location details of the error within the model file.
|
33 | * @param {String} fullMessage - the optional full message text
|
34 | * @param {String} fileName - the optional fileName associated with the exception
|
35 | * @param {String} component - the optional component which throws this error
|
36 | */
|
37 | constructor(message, fileLocation, fullMessage, fileName, component) {
|
38 | super(message, fileLocation, fullMessage, fileName, component);
|
39 | }
|
40 | }
|
41 |
|
42 | module.exports = SystemException;
|