1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_sdbc_SQLException_idl__
24#define __com_sun_star_sdbc_SQLException_idl__
25
26#ifndef __com_sun_star_uno_Exception_idl__
27#include <com/sun/star/uno/Exception.idl>
28#endif
29
30 module com {  module sun {  module star {  module sdbc {
31
32
33/** is an exception that provides information on a database access error.
34
35	<p>
36	Each
37	<type scope="com::sun::star::sdbc">SQLException</type>
38	provides several kinds of information:
39	</p>
40	<p>
41	<ul>
42	<li>
43	a string describing the error.  This is used as the
44	<type scope="com::sun::star::uno">Exception</type>
45	message.
46	</li>
47	</ul>
48	</p>
49 */
50published exception SQLException: com::sun::star::uno::Exception
51{
52	/** returns a string, which uses the XOPEN SQLState conventions.
53		The values of the SQLState string are described in the XOPEN SQL spec.
54	 */
55	string			SQLState;
56
57	/** returns an integer error code that is specific to each vendor.  Normally this will
58		be the actual error code returned by the underlying database.
59	 */
60	long			ErrorCode;
61
62	/** returns a chain to the next Exception.
63		This can be used to provide additional
64		error information.
65	 */
66	any				NextException;
67};
68
69//=============================================================================
70
71}; }; }; };
72
73/*===========================================================================
74===========================================================================*/
75#endif
76