1 /******************************************************************************
2 * Freeais.org
3 * http://www.freeais.org info@freeais.org
4 *
5 * Copyright (c) 2007
6 *
7 * ynnor systems GmbH
8 * Mundsburger Damm 45
9 * 22087 Hamburg
10 * Germany
11 *
12 * Alexander Lotter lotter@ynnor.de
13 * David Schmitz schmitz@ynnor.de
14 *
15 * This file is part of Freeais.org.
16 *
17 * Freeais.org is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 3 of the License, or
20 * (at your option) any later version.
21 *
22 * Freeais.org is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program. If not, see <http://www.gnu.org/licenses/>.
29 *
30 ******************************************************************************/
31
32 package au.gov.amsa.ais;
33
34 /**
35 * Exception class for AIS parsing.
36 *
37 */
38 public class AisParseException extends RuntimeException {
39
40 private static final long serialVersionUID = -2776095268964649974L;
41
42 public static final String INVALID_CHARACTER = Internationalization
43 .getString("AISParseException.INVALID_CHARACTER"); //$NON-NLS-1$
44
45 public static final String NOT_CONSISTENT_DECODED_STRING = Internationalization
46 .getString("AISParseException.NOT_CONSISTENT_DECODED_STRING"); //$NON-NLS-1$
47
48 public AisParseException(String errorMsg) {
49 super(errorMsg);
50 }
51
52 public AisParseException(Throwable t) {
53 super(t);
54 }
55 }