@@ -168,14 +168,14 @@ { return pointer; } @end -@implementation OFOverflowException +@implementation OFOutOfRangeException + newWithObject: (id)obj { - return [[OFOverflowException alloc] initWithObject: obj]; + return [[OFOutOfRangeException alloc] initWithObject: obj]; } - initWithObject: (id)obj { return (self = [super initWithObject: obj]); @@ -184,11 +184,11 @@ - (char*)cString { if (string != NULL) return string; - asprintf(&string, "ERROR: Overflow in object of class %s!\n", + asprintf(&string, "ERROR: Value out of range in object of class %s!\n", object != nil ? [object name] : "(null)"); return string; } @end