01: /*
02: * The contents of this file are subject to the Sapient Public License
03: * Version 1.0 (the "License"); you may not use this file except in compliance
04: * with the License. You may obtain a copy of the License at
05: * http://carbon.sf.net/License.html.
06: *
07: * Software distributed under the License is distributed on an "AS IS" basis,
08: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
09: * the specific language governing rights and limitations under the License.
10: *
11: * The Original Code is The Carbon Component Framework.
12: *
13: * The Initial Developer of the Original Code is Sapient Corporation
14: *
15: * Copyright (C) 2003 Sapient Corporation. All Rights Reserved.
16: */
17:
18: package org.sape.carbon.services.sql;
19:
20: import org.sape.carbon.core.util.classify.SeverityEnum;
21:
22: /**
23: * This exception denotes a failure to find the configuration for a named
24: * statement on the specified statement factory.
25: *
26: * Copyright 2002 Sapient
27: * @since carbon 1.2
28: * @author Greg Hinkle, December 2002
29: * @version $Revision: 1.6 $($Author: dvoet $ / $Date: 2003/05/05 21:21:36 $)
30: */
31: public class StatementNotConfiguredException extends
32: StatementFactoryException {
33:
34: /**
35: * Constructor for StatementFactoryException
36: *
37: * @param sourceClass The source class of this exception
38: * @param queryName name of the query that is not properly configured
39: * @param statementFactoryName name of the statement factory
40: * containing the incorrectly configured query
41: */
42: public StatementNotConfiguredException(Class sourceClass,
43: String queryName, String statementFactoryName) {
44:
45: super (sourceClass, "Named query [" + queryName
46: + "] configuration not found "
47: + "for StatementFactory [" + statementFactoryName
48: + "].");
49: }
50:
51: /**
52: * @return SeverityEnum.INFO
53: */
54: public SeverityEnum getSeverity() {
55: return SeverityEnum.INFO;
56: }
57: }
|