]> err.no Git - sope/blob - sope-gdl1/SQLite3/SQLiteException.m
fixed for new -describeResults: API
[sope] / sope-gdl1 / SQLite3 / SQLiteException.m
1 /* 
2    SQLiteException.m
3
4    Copyright (C) 2003-2005 Helge Hess
5
6    Author: Helge Hess (helge.hess@opengroupware.org)
7
8    This file is part of the SQLite Adaptor Library
9
10    This library is free software; you can redistribute it and/or
11    modify it under the terms of the GNU Library General Public
12    License as published by the Free Software Foundation; either
13    version 2 of the License, or (at your option) any later version.
14
15    This library is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    Library General Public License for more details.
19
20    You should have received a copy of the GNU Library General Public
21    License along with this library; see the file COPYING.LIB.
22    If not, write to the Free Software Foundation,
23    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 */
25
26 #import <GDLAccess/GDLAccess.h>
27 #import "SQLiteException.h"
28 #include "common.h"
29
30 @implementation SQLiteException
31
32 + (void)raiseWithFormat:(NSString *)_format, ... {
33   NSString *tmp = nil;
34   va_list  ap;
35   
36   va_start(ap, _format);
37   tmp = [[NSString allocWithZone:[self zone]]
38                    initWithFormat:_format arguments:ap];
39   va_end(ap);
40
41   AUTORELEASE(tmp);
42
43   [[[self alloc] initWithName:NSStringFromClass([self class])
44                  reason:tmp userInfo:nil]
45           raise];
46 }
47
48 @end
49
50 @implementation SQLiteCouldNotOpenChannelException
51 @end
52
53 @implementation SQLiteCouldNotConnectException
54 @end
55
56 @implementation SQLiteCouldNotBindException
57 @end
58
59 void __link_SQLiteException() {
60   // used to force linking of object file
61   __link_SQLiteException();
62 }