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 something can not be converted (ie FxValue's fromString() failed)
039: *
040: * @author Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
041: */
042: public class FxConversionException extends FxApplicationException {
043: private static final long serialVersionUID = -5433389482608308847L;
044:
045: /**
046: * Localized exception constructor
047: *
048: * @param converted the message to convert
049: */
050: public FxConversionException(FxApplicationException converted) {
051: super (converted);
052: }
053:
054: /**
055: * Localized exception constructor
056: *
057: * @param log Log to use
058: * @param converted exception to convert
059: */
060: public FxConversionException(Log log,
061: FxApplicationException converted) {
062: super (log, converted);
063: }
064:
065: /**
066: * Localized exception constructor
067: *
068: * @param key exception messge resource key
069: * @param values value parameters for resource message
070: */
071: public FxConversionException(String key, Object... values) {
072: super (key, values);
073: }
074:
075: /**
076: * Localized exception constructor
077: *
078: * @param log Log to use
079: * @param key exception messge resource key
080: * @param values value parameters for resource message
081: */
082: public FxConversionException(Log log, String key, Object... values) {
083: super (log, key, values);
084: }
085:
086: /**
087: * Localized exception constructor
088: *
089: * @param cause causing exception
090: * @param key exception messge resource key
091: * @param values value parameters for resource message
092: */
093: public FxConversionException(Throwable cause, String key,
094: Object... values) {
095: super (cause, key, values);
096: }
097:
098: /**
099: * Localized exception constructor
100: *
101: * @param log Log to use
102: * @param cause causing message
103: * @param key exception messge resource key
104: * @param values value parameters for resource message
105: */
106: public FxConversionException(Log log, Throwable cause, String key,
107: Object... values) {
108: super (log, cause, key, values);
109: }
110:
111: /**
112: * Localized exception constructor
113: *
114: * @param key exception messge resource key
115: */
116: public FxConversionException(String key) {
117: super (key);
118: }
119:
120: /**
121: * Localized exception constructor
122: *
123: * @param log Log to use
124: * @param key exception messge resource key
125: */
126: public FxConversionException(Log log, String key) {
127: super (log, key);
128: }
129:
130: /**
131: * Localized exception constructor
132: *
133: * @param message resource key
134: * @param cause causing exception
135: */
136: public FxConversionException(String message, Throwable cause) {
137: super (message, cause);
138: }
139:
140: /**
141: * Localized exception constructor
142: *
143: * @param log Log to use
144: * @param message resource key
145: * @param cause exception cause
146: */
147: public FxConversionException(Log log, String message,
148: Throwable cause) {
149: super (log, message, cause);
150: }
151:
152: /**
153: * Localized exception constructor
154: *
155: * @param cause exception cause
156: */
157: public FxConversionException(Throwable cause) {
158: super (cause);
159: }
160:
161: /**
162: * Localized exception constructor
163: *
164: * @param log Log to use
165: * @param cause causing exception
166: */
167: public FxConversionException(Log log, Throwable cause) {
168: super(log, cause);
169: }
170: }
|