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 com.flexive.sqlParser.SqlParserException;
036: import org.apache.commons.logging.Log;
037:
038: /**
039: * Exception that can occur during a search.
040: *
041: * @author Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
042: */
043: public class FxSqlSearchException extends FxApplicationException {
044: private static final long serialVersionUID = 1840806055903940077L;
045:
046: /**
047: * Localized exception constructor
048: *
049: * @param spe the underlying SqlParserException
050: */
051: public FxSqlSearchException(SqlParserException spe) {
052: super (spe, spe.getMessage(), spe.getValues());
053: }
054:
055: /**
056: * Localized exception constructor
057: *
058: * @param log
059: * @param converted
060: */
061: public FxSqlSearchException(Log log,
062: FxApplicationException converted) {
063: super (log, converted);
064: }
065:
066: /**
067: * Localized exception constructor
068: *
069: * @param key
070: * @param values
071: */
072: public FxSqlSearchException(String key, Object... values) {
073: super (key, values);
074: }
075:
076: /**
077: * Localized exception constructor
078: *
079: * @param log
080: * @param key
081: * @param values
082: */
083: public FxSqlSearchException(Log log, String key, Object... values) {
084: super (log, key, values);
085: }
086:
087: /**
088: * Localized exception constructor
089: *
090: * @param cause
091: * @param key
092: * @param values
093: */
094: public FxSqlSearchException(Throwable cause, String key,
095: Object... values) {
096: super (cause, key, values);
097: }
098:
099: /**
100: * Localized exception constructor
101: *
102: * @param log
103: * @param cause
104: * @param key
105: * @param values
106: */
107: public FxSqlSearchException(Log log, Throwable cause, String key,
108: Object... values) {
109: super (log, cause, key, values);
110: }
111:
112: /**
113: * Localized exception constructor
114: *
115: * @param key
116: */
117: public FxSqlSearchException(String key) {
118: super (key);
119: }
120:
121: /**
122: * Localized exception constructor
123: *
124: * @param log
125: * @param key
126: */
127: public FxSqlSearchException(Log log, String key) {
128: super (log, key);
129: }
130:
131: /**
132: * Localized exception constructor
133: *
134: * @param message
135: * @param cause
136: */
137: public FxSqlSearchException(String message, Throwable cause) {
138: super (message, cause);
139: }
140:
141: /**
142: * Localized exception constructor
143: *
144: * @param log
145: * @param message
146: * @param cause
147: */
148: public FxSqlSearchException(Log log, String message, Throwable cause) {
149: super (log, message, cause);
150: }
151:
152: /**
153: * Localized exception constructor
154: *
155: * @param cause
156: */
157: public FxSqlSearchException(Throwable cause) {
158: super (cause);
159: }
160:
161: /**
162: * Localized exception constructor
163: *
164: * @param log
165: * @param cause
166: */
167: public FxSqlSearchException(Log log, Throwable cause) {
168: super(log, cause);
169: }
170:
171: }
|