@@ -41,10 +41,22 @@ #import "OFExceptions.h" #ifndef HAVE_ASPRINTF #import "asprintf.h" #endif + +@implementation OFAllocFailedException ++ (Class)class +{ + return self; +} + +- (const char*)cString +{ + return "Allocating an object failed!"; +} +@end @implementation OFException + newWithClass: (Class)class_ { return [[self alloc] initWithClass: class_];