]> err.no Git - sope/blob - sope-gdl1/PostgreSQL/PostgreSQL72Exception.m
renamed PostgreSQL72 to PostgreSQL, install in Library/GDLAdaptors-1.1
[sope] / sope-gdl1 / PostgreSQL / PostgreSQL72Exception.m
1 /* 
2    PostgreSQL72Exception.m
3
4    Copyright (C) 1999 MDlink online service center GmbH and Helge Hess
5
6    Author: Helge Hess (helge@mdlink.de)
7
8    This file is part of the PostgreSQL72 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 // $Id: PostgreSQL72Exception.m 1 2004-08-20 10:38:46Z znek $
26
27 #include <GDLAccess/GDLAccess.h>
28 #include "PostgreSQL72Exception.h"
29 #include "common.h"
30 #include <stdarg.h>
31
32 @implementation PostgreSQL72Exception
33
34 + (void)raiseWithFormat:(NSString *)_format, ... {
35   NSString *tmp = nil;
36   va_list  ap;
37   
38   va_start(ap, _format);
39   tmp = [[NSString alloc] initWithFormat:_format arguments:ap];
40   va_end(ap);
41   
42   [tmp autorelease];
43
44   [[[self alloc] initWithName:NSStringFromClass([self class])
45                  reason:tmp userInfo:nil]
46           raise];
47 }
48
49 @end /* PostgreSQL72Exception */
50
51 @implementation PostgreSQL72CouldNotOpenChannelException
52 @end
53
54 @implementation PostgreSQL72CouldNotConnectException
55 @end
56
57 @implementation PostgreSQL72CouldNotBindException
58 @end
59
60 void __link_PostgreSQL72Exception() {
61   // used to force linking of object file
62   __link_PostgreSQL72Exception();
63 }