Adjust to ObjFW changes

FossilOrigin-Name: b80a03bd2fd4ff11dc0d9c7ce330695ebc060f78034b9ade2d7eb53d88c7bb80
This commit is contained in:
Jonathan Schleifer 2016-02-21 11:08:17 +00:00
parent f9d637e7be
commit 3c16f110f5
6 changed files with 8 additions and 32 deletions

View file

@ -1,6 +1,8 @@
#import "PGException.h"
@implementation PGException
@synthesize connection = _connection;
+ (instancetype)exceptionWithConnection: (PGConnection*)connection
{
return [[[self alloc] initWithConnection: connection] autorelease];
@ -36,9 +38,4 @@
return [OFString stringWithFormat: @"A PostgreSQL operation failed: %@",
_error];
}
- (PGConnection*)connection
{
OF_GETTER(_connection, NO)
}
@end