FossilOrigin-Name: de46b0e10c5d9f516acbbf2ea01d84d0d5ac126412949d459265279262a1b87e
21 lines
507 B
Objective-C
21 lines
507 B
Objective-C
#import "PGConnectionFailedException.h"
|
|
|
|
@implementation PGConnectionFailedException
|
|
- (OFString*)description
|
|
{
|
|
OFAutoreleasePool *pool;
|
|
|
|
if (description != nil)
|
|
return description;
|
|
|
|
pool = [[OFAutoreleasePool alloc] init];
|
|
description = [[OFString alloc] initWithFormat:
|
|
@"Establishing a PostgreSQL connection in class %@ failed:\n%s\n"
|
|
"Parameters: %@", inClass,
|
|
PQerrorMessage([connection PG_connection]),
|
|
[connection parameters]];
|
|
[pool release];
|
|
|
|
return description;
|
|
}
|
|
@end
|