001: /***************************************************************
002: * This file is part of the [fleXive](R) project.
003: *
004: * Copyright (c) 1999-2008
005: * UCS - unique computing solutions gmbh (http://www.ucs.at)
006: * All rights reserved
007: *
008: * The [fleXive](R) project is free software; you can redistribute
009: * it and/or modify it under the terms of the GNU General Public
010: * License as published by the Free Software Foundation;
011: * either version 2 of the License, or (at your option) any
012: * later version.
013: *
014: * The GNU General Public License can be found at
015: * http://www.gnu.org/copyleft/gpl.html.
016: * A copy is found in the textfile GPL.txt and important notices to the
017: * license from the author are found in LICENSE.txt distributed with
018: * these libraries.
019: *
020: * This library is distributed in the hope that it will be useful,
021: * but WITHOUT ANY WARRANTY; without even the implied warranty of
022: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
023: * GNU General Public License for more details.
024: *
025: * For further information about UCS - unique computing solutions gmbh,
026: * please see the company website: http://www.ucs.at
027: *
028: * For further information about [fleXive](R), please see the
029: * project website: http://www.flexive.org
030: *
031: *
032: * This copyright notice MUST APPEAR in all copies of the file!
033: ***************************************************************/package com.flexive.shared.exceptions;
034:
035: import org.apache.commons.logging.Log;
036:
037: /**
038: * Exception thrown if a constraint was violated (ie unique constraints)
039: *
040: * @author Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
041: */
042: public class FxConstraintViolationException extends
043: FxApplicationException {
044: private static final long serialVersionUID = -9137771527130910760L;
045:
046: /**
047: * Localized exception constructor
048: *
049: * @param converted the message to convert
050: */
051: public FxConstraintViolationException(
052: FxApplicationException converted) {
053: super (converted);
054: }
055:
056: /**
057: * Localized exception constructor
058: *
059: * @param log Log to use
060: * @param converted exception to convert
061: */
062: public FxConstraintViolationException(Log log,
063: FxApplicationException converted) {
064: super (log, converted);
065: }
066:
067: /**
068: * Localized exception constructor
069: *
070: * @param key exception messge resource key
071: * @param values value parameters for resource message
072: */
073: public FxConstraintViolationException(String key, Object... values) {
074: super (key, values);
075: }
076:
077: /**
078: * Localized exception constructor
079: *
080: * @param log Log to use
081: * @param key exception messge resource key
082: * @param values value parameters for resource message
083: */
084: public FxConstraintViolationException(Log log, String key,
085: Object... values) {
086: super (log, key, values);
087: }
088:
089: /**
090: * Localized exception constructor
091: *
092: * @param cause causing exception
093: * @param key exception messge resource key
094: * @param values value parameters for resource message
095: */
096: public FxConstraintViolationException(Throwable cause, String key,
097: Object... values) {
098: super (cause, key, values);
099: }
100:
101: /**
102: * Localized exception constructor
103: *
104: * @param log Log to use
105: * @param cause causing message
106: * @param key exception messge resource key
107: * @param values value parameters for resource message
108: */
109: public FxConstraintViolationException(Log log, Throwable cause,
110: String key, Object... values) {
111: super (log, cause, key, values);
112: }
113:
114: /**
115: * Localized exception constructor
116: *
117: * @param key exception messge resource key
118: */
119: public FxConstraintViolationException(String key) {
120: super (key);
121: }
122:
123: /**
124: * Localized exception constructor
125: *
126: * @param log Log to use
127: * @param key exception messge resource key
128: */
129: public FxConstraintViolationException(Log log, String key) {
130: super (log, key);
131: }
132:
133: /**
134: * Localized exception constructor
135: *
136: * @param message resource key
137: * @param cause causing exception
138: */
139: public FxConstraintViolationException(String message,
140: Throwable cause) {
141: super (message, cause);
142: }
143:
144: /**
145: * Localized exception constructor
146: *
147: * @param log Log to use
148: * @param message resource key
149: * @param cause exception cause
150: */
151: public FxConstraintViolationException(Log log, String message,
152: Throwable cause) {
153: super (log, message, cause);
154: }
155:
156: /**
157: * Localized exception constructor
158: *
159: * @param cause exception cause
160: */
161: public FxConstraintViolationException(Throwable cause) {
162: super (cause);
163: }
164:
165: /**
166: * Localized exception constructor
167: *
168: * @param log Log to use
169: * @param cause causing exception
170: */
171: public FxConstraintViolationException(Log log, Throwable cause) {
172: super(log, cause);
173: }
174: }
|