|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
DuplicateLanguageEntryException.java | - | 0% | 0% | 0% |
|
1 | /* $Id: DuplicateLanguageEntryException.java,v 1.5 2006/10/20 20:23:00 m31 Exp $ | |
2 | * | |
3 | * This file is part of the project "Hilbert II" - http://www.qedeq.org | |
4 | * | |
5 | * Copyright 2000-2006, Michael Meyling <mime@qedeq.org>. | |
6 | * | |
7 | * "Hilbert II" is free software; you can redistribute | |
8 | * it and/or modify it under the terms of the GNU General Public | |
9 | * License as published by the Free Software Foundation; either | |
10 | * version 2 of the License, or (at your option) any later version. | |
11 | * | |
12 | * This program is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | * GNU General Public License for more details. | |
16 | */ | |
17 | ||
18 | package org.qedeq.kernel.bo.module; | |
19 | ||
20 | ||
21 | /** | |
22 | * Duplicate language entry exception. | |
23 | * | |
24 | * @version $Revision: 1.5 $ | |
25 | * @author Michael Meyling | |
26 | */ | |
27 | public class DuplicateLanguageEntryException extends IllegalDataException { | |
28 | ||
29 | /** Necessary for serialization. */ | |
30 | private static final long serialVersionUID = 1L; | |
31 | ||
32 | /** Index of already existing language entry. */ | |
33 | private final int index; | |
34 | ||
35 | /** | |
36 | * Constructor. | |
37 | * | |
38 | * @param errorCode Error code of this message. | |
39 | * @param message Error message. | |
40 | * @param index Index of already existing language entry. | |
41 | */ | |
42 | 0 | public DuplicateLanguageEntryException(final int errorCode, |
43 | final String message, final int index) { | |
44 | 0 | super(errorCode, message); |
45 | 0 | this.index = index; |
46 | } | |
47 | ||
48 | /** | |
49 | * Get index of already existing language entry. | |
50 | * | |
51 | * @return Index of already existing language entry. | |
52 | */ | |
53 | 0 | public final int getIndex() { |
54 | 0 | return index; |
55 | } | |
56 | ||
57 | } |
|