View Javadoc
1   /*
2    * Copyright 2015-2024 Medical Information Systems Research Group (https://medical.zcu.cz),
3    * Department of Computer Science and Engineering, University of West Bohemia.
4    * Address: Univerzitni 8, 306 14 Plzen, Czech Republic.
5    *
6    * Author Petr Vcelak (vcelak@kiv.zcu.cz).
7    *
8    * This file is part of AnonMed project.
9    *
10   * AnonMed is free software: you can redistribute it and/or modify
11   * it under the terms of the GNU General Public License as published by
12   * the Free Software Foundation, either version 3 of the License.
13   *
14   * AnonMed is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17   * GNU General Public License for more details.
18   *
19   * You should have received a copy of the GNU General Public License
20   * along with AnonMed. If not, see <http://www.gnu.org/licenses/>.
21   */
22  package cz.zcu.mre.anonmed;
23  
24  import cz.zcu.mre.mrelib.MREException;
25  
26  /**
27   * AnonMed Exception.
28   *
29   * @author Petr Vcelak (vcelak@kiv.zcu.cz)
30   * @since 2015-11-20
31   */
32  public class AnonMedException extends MREException {
33  
34      /**
35       * Serial version UID.
36       */
37      private static final long serialVersionUID = -5732346829925852147L;
38  
39      /**
40       * AnonMed Exception.
41       *
42       * @param msg Error message.
43       */
44      public AnonMedException(final String msg) {
45          super(msg);
46      }
47  
48      /**
49       * AnonMed Exception.
50       *
51       * @param msg Error message
52       * @param exit Exit code.
53       */
54      public AnonMedException(final String msg, final int exit) {
55          super(msg, exit);
56  
57      }
58  
59      /**
60       * AnonMed Exception with exit code only.
61       *
62       * @param exit Exit code.
63       */
64      public AnonMedException(final int exit) {
65          super(exit);
66      }
67  
68  }