01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.exception;
19:
20: public class UnknownTypeException extends TypeException {
21:
22: // TODO: remove this constructor if possible
23: public UnknownTypeException(String message) {
24: super (message);
25: }
26:
27: /**
28: * Creates a new <code>ContelligentException</code> instance.
29: *
30: * @param id
31: * unique exception identifier
32: * @param message
33: * exception message for debug purposes
34: * @param info
35: * array of objects to describe the exception in more detail
36: */
37: public UnknownTypeException(String message, Object[] info) {
38: super (message, info);
39: }
40:
41: /**
42: * Creates a new <code>ContelligentException</code> instance.
43: *
44: * @param id
45: * unique exception identifier
46: * @param message
47: * exception message for debug purposes
48: * @param throwable
49: * <code>Throwable</code> which caused this exception
50: */
51: public UnknownTypeException(String message, Throwable t) {
52: super (message, t);
53: }
54:
55: /**
56: * Creates a new <code>ContelligentException</code> instance.
57: *
58: * @param id
59: * unique exception identifier
60: * @param message
61: * exception message for debug purposes
62: * @param info
63: * array of objects to describe the exception in more detail
64: * @param throwable
65: * <code>Throwable</code> which caused this exception
66: */
67: public UnknownTypeException(String message, Object[] info,
68: Throwable t) {
69: super (message, info, t);
70: }
71:
72: public String getId() {
73: return ContelligentExceptionID.type_unknownType;
74: }
75: }
|