Differences From Artifact [6c6b7a9a76]:
- File src/OFExceptions.m — part of check-in [ca4a07a578] at 2009-04-12 14:05:37 on branch trunk — Add OFNotImplementedException. (user: js, size: 12358) [annotate] [blame] [check-ins using]
To Artifact [22a218a9f1]:
- File
src/OFExceptions.m
— part of check-in
[a1a5bfb3cd]
at
2009-04-21 16:47:32
on branch trunk
— Throw OFAllocFailedException instead of returning nil.
This exception is quite special, look at the documentation for details. (user: js, size: 12504) [annotate] [blame] [check-ins using]
︙ | |||
39 40 41 42 43 44 45 46 47 48 49 50 51 52 | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | + + + + + + + + + + + + | #endif #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_]; } |
︙ |