ObjPgSQL  Diff

Differences From Artifact [2780d9067f]:

To Artifact [7e22faf8ff]:


1
2
3


4
5
6
7
8
9
10
#import "PGCommandFailedException.h"

@implementation PGCommandFailedException


+ (instancetype)exceptionWithConnection: (PGConnection*)connection
				command: (OFString*)command
{
	return [[[self alloc] initWithConnection: connection
					 command: command] autorelease];
}




>
>







1
2
3
4
5
6
7
8
9
10
11
12
#import "PGCommandFailedException.h"

@implementation PGCommandFailedException
@synthesize command = _command;

+ (instancetype)exceptionWithConnection: (PGConnection*)connection
				command: (OFString*)command
{
	return [[[self alloc] initWithConnection: connection
					 command: command] autorelease];
}

31
32
33
34
35
36
37
38
39
40
41
42
43
}

- (OFString*)description
{
	return [OFString stringWithFormat: @"A PostgreSQL command failed: %@\n"
					   @"Command: %@", _error, _command];
}

- (OFString*)command
{
	OF_GETTER(_command, NO)
}
@end







<
<
<
<
<

33
34
35
36
37
38
39





40
}

- (OFString*)description
{
	return [OFString stringWithFormat: @"A PostgreSQL command failed: %@\n"
					   @"Command: %@", _error, _command];
}





@end