Differences From Artifact [0319ec8956]:
- File src/exceptions/OFRenameFileFailedException.m — part of check-in [65ec63f7c1] at 2011-06-06 16:18:36 on branch trunk — Remove semicolons that should not have been there. (user: js, size: 1881) [annotate] [blame] [check-ins using] [more...]
To Artifact [8147d28862]:
- File
src/exceptions/OFRenameFileFailedException.m
— part of check-in
[e1e7ffa903]
at
2011-09-22 23:25:42
on branch trunk
— Exceptions are now autoreleased.
This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. (user: js, size: 1904) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
20 21 22 23 24 25 26 | #import "OFString.h" #import "OFNotImplementedException.h" #import "common.h" @implementation OFRenameFileFailedException | | | | | | | | | | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #import "OFString.h" #import "OFNotImplementedException.h" #import "common.h" @implementation OFRenameFileFailedException + exceptionWithClass: (Class)class_ sourcePath: (OFString*)src destinationPath: (OFString*)dst { return [[[self alloc] initWithClass: class_ sourcePath: src destinationPath: dst] autorelease]; } - initWithClass: (Class)class_ { Class c = isa; [self release]; @throw [OFNotImplementedException exceptionWithClass: c selector: _cmd]; } - initWithClass: (Class)class_ sourcePath: (OFString*)src destinationPath: (OFString*)dst { self = [super initWithClass: class_]; |
︙ | ︙ |