ObjPgSQL  Artifact [9e57dfeee0]

Artifact 9e57dfeee030b45928e24a24048571c1871df47f214bcac791ca0972a5ccb56b:

  • File exceptions/PGConnectionFailedException.m — part of check-in [de46b0e10c] at 2012-10-03 13:20:06 on branch trunk — Initial import. (user: js size: 507)

#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