Differences From Artifact [8109e7dcaa]:
- File src/OFExceptions.h — part of check-in [6072f61f83] at 2008-10-07 21:25:10 on branch trunk — OFFile improvements. (user: js, size: 1690) [annotate] [blame] [check-ins using]
To Artifact [03939ec239]:
- File
src/OFExceptions.h
— part of check-in
[b597d49f43]
at
2008-10-08 23:15:26
on branch trunk
— Multiple changes, see details.
* OFObject getMem: renamd to getMemWithSize:.
* OFString compare: renamed to compareTo:.
* Exceptions don't throw itself anymore.
* Exceptions include an error string now.
* Exceptions now got raise and string.
* New methods for OFFile:
* changeModeOfFile:toMode:
* changeOwnerOfFile:toOwner:andGroup:
* delete:
* link:to:
* symlink:to:
* OFFile isEndOfFile renamd to atEndOfFile
* OFNotImplementedExeception newWithObject:andMethod renamed to
newWithObject:andSelector:.
* Tests updated accordingly.
* TODO list added. (user: js, size: 1807) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import <stddef.h> #import "OFObject.h" @interface OFException: OFObject + newWithObject: (id)obj; - initWithObject: (id)obj; @end @interface OFNoMemException: OFException + newWithObject: (id)obj andSize: (size_t)size; - initWithObject: (id)obj andSize: (size_t)size; @end @interface OFNotImplementedException: OFException + newWithObject: (id)obj | > > > > > > > > > | | | 8 9 10 11 12 13 14 15 16 17 18 19 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 | * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import <stddef.h> #import "OFObject.h" // FIXME: Exceptions should include which type of error occoured (fopen etc.) @interface OFException: OFObject { char *errstr; } + newWithObject: (id)obj; - initWithObject: (id)obj; - free; - (void)raise; - (char*)string; @end @interface OFNoMemException: OFException + newWithObject: (id)obj andSize: (size_t)size; - initWithObject: (id)obj andSize: (size_t)size; @end @interface OFNotImplementedException: OFException + newWithObject: (id)obj andSelector: (SEL)sel; - initWithObject: (id)obj andSelector: (SEL)sel; @end @interface OFMemNotPartOfObjException: OFException + newWithObject: (id)obj andPointer: (void*)ptr; - initWithObject: (id)obj andPointer: (void*)ptr; |
︙ | ︙ |