@@ -1,19 +1,19 @@ #import "PGCommandFailedException.h" @implementation PGCommandFailedException @synthesize command = _command; -+ (instancetype)exceptionWithConnection: (PGConnection*)connection - command: (OFString*)command ++ (instancetype)exceptionWithConnection: (PGConnection *)connection + command: (OFString *)command { return [[[self alloc] initWithConnection: connection command: command] autorelease]; } -- initWithConnection: (PGConnection*)connection - command: (OFString*)command +- initWithConnection: (PGConnection *)connection + command: (OFString *)command { self = [super initWithConnection: connection]; @try { _command = [command copy]; @@ -30,11 +30,11 @@ [_command release]; [super dealloc]; } -- (OFString*)description +- (OFString *)description { return [OFString stringWithFormat: @"A PostgreSQL command failed: %@\n" @"Command: %@", _error, _command]; } @end