1
2
3
4
5
6
7
8
9
10
|
#import "PGException.h"
@implementation PGException
+ (instancetype)exceptionWithConnection: (PGConnection*)connection
{
return [[[self alloc] initWithConnection: connection] autorelease];
}
- initWithConnection: (PGConnection*)connection
{
|
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
|
#import "PGException.h"
@implementation PGException
@synthesize connection = _connection;
+ (instancetype)exceptionWithConnection: (PGConnection*)connection
{
return [[[self alloc] initWithConnection: connection] autorelease];
}
- initWithConnection: (PGConnection*)connection
{
|
32
33
34
35
36
37
38
39
40
41
42
43
44
|
}
- (OFString*)description
{
return [OFString stringWithFormat: @"A PostgreSQL operation failed: %@",
_error];
}
- (PGConnection*)connection
{
OF_GETTER(_connection, NO)
}
@end
|
<
<
<
<
<
|
34
35
36
37
38
39
40
41
|
}
- (OFString*)description
{
return [OFString stringWithFormat: @"A PostgreSQL operation failed: %@",
_error];
}
@end
|