1 | package desmoj.core.exception; |
2 | |
3 | /** |
4 | * Exception is thrown to indicate that the simulation has been forced to stop |
5 | * becaus of an error that occured. The error forcing a disruption of the |
6 | * simulation is described in the error message attached to this exception. |
7 | * Users must not make use of it nor is this exception supposed to be caught by |
8 | * users. Its use inside the DESMOJ framework is transparent because it is |
9 | * derived from <code>RuntimeException</code> which isthe root for a tree of |
10 | * exceptions that are automatically rethrown by any Java method thus not |
11 | * needing to be rethrown by the user, too. |
12 | * |
13 | * @version DESMO-J, Ver. 2.3.3 copyright (c) 2011 |
14 | * @author Tim Lechler |
15 | * |
16 | * Licensed under the Apache License, Version 2.0 (the "License"); |
17 | * you may not use this file except in compliance with the License. You |
18 | * may obtain a copy of the License at |
19 | * http://www.apache.org/licenses/LICENSE-2.0 |
20 | * |
21 | * Unless required by applicable law or agreed to in writing, software |
22 | * distributed under the License is distributed on an "AS IS" |
23 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
24 | * or implied. See the License for the specific language governing |
25 | * permissions and limitations under the License. |
26 | * |
27 | */ |
28 | public class SimAbortedException extends DESMOJException { |
29 | /** |
30 | * Creates a new SimAbortedException declaring the reason for the aborted |
31 | * simulation run in the contents of the error message given as a parameter. |
32 | * |
33 | * @param message |
34 | * desmoj.report.ErrorMessage : The reason for the aborted |
35 | * simulation |
36 | */ |
37 | public SimAbortedException(desmoj.core.report.ErrorMessage message) { |
38 | |
39 | super(message); |
40 | |
41 | } |
42 | } |