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: /**
21: * The main exception class for security exceptions.
22: */
23: public class ContelligentSecurityException extends
24: ContelligentRuntimeException {
25:
26: /**
27: * Creates a new <code>ContelligentException</code> instance.
28: *
29: * @param message
30: * exception message for debug purposes
31: */
32: public ContelligentSecurityException(String message) {
33: super (message);
34: }
35:
36: /**
37: * Creates a new <code>ContelligentException</code> instance.
38: *
39: * @param message
40: * exception message for debug purposes
41: * @param info
42: * array of objects to describe the exception in more detail
43: */
44: public ContelligentSecurityException(String message, Object[] info) {
45: super (message, info);
46: }
47:
48: /**
49: * Creates a new <code>ContelligentException</code> instance.
50: *
51: * @param message
52: * exception message for debug purposes
53: * @param throwable
54: * <code>Throwable</code> which caused this exception
55: */
56: public ContelligentSecurityException(String message, Throwable t) {
57: super (message, t);
58: }
59:
60: /**
61: * Creates a new <code>ContelligentException</code> instance.
62: *
63: * @param id
64: * unique exception identifier
65: * @param message
66: * exception message for debug purposes
67: * @param info
68: * array of objects to describe the exception in more detail
69: * @param throwable
70: * <code>Throwable</code> which caused this exception
71: */
72: public ContelligentSecurityException(String message, Object[] info,
73: Throwable t) {
74: super (message, info, t);
75: }
76:
77: /**
78: * Implement this method in concreate exception classes to return the fixed
79: * contelligent exception id.
80: */
81: public String getId() {
82: return ContelligentExceptionID.security_generic;
83: }
84:
85: }
|