Differences From Artifact [fb7bdc037c]:
- File src/OFExceptions.h — part of check-in [1496808b81] at 2009-01-24 15:24:49 on branch trunk — Adjust API to introduction of OFAutoreleasePool. (user: js, size: 12056) [annotate] [blame] [check-ins using]
To Artifact [3a58ffe4f3]:
- File
src/OFExceptions.h
— part of check-in
[61a6ac873a]
at
2009-02-14 17:08:21
on branch trunk
— Big diff, see details.
* Add OFComparable protocol.
* Add OFInvalidArgument exception - needs that sel_getName vs.
sel_get_name stuff again, therefore reintroduce it.
* Implement proper copy method for OFString and OFArray.
* Add isEqual: and compare: for OFString and OFArray. (user: js, size: 12784) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
115 116 117 118 119 120 121 122 123 124 125 126 127 128 | /** * An OFException indicating the given value is out of range. */ @interface OFOutOfRangeException: OFException {} @end /** * An OFException indicating that the encoding is invalid for this object. */ @interface OFInvalidEncodingException: OFException {} @end /** | > > > > > > > > > > > > > > > > > > > > > > > > > > > | 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | /** * An OFException indicating the given value is out of range. */ @interface OFOutOfRangeException: OFException {} @end /** * An OFException indicating that the argument is invalid for this method. */ @interface OFInvalidArgumentException: OFException { SEL selector; } /** * \param class The class of the object which caused the exception * \param selector The selector which doesn't accept the argument * \return A new invalid argument exception */ + newWithClass: (Class)class andSelector: (SEL)selector; /** * Initializes an already allocated invalid argument exception * * \param class The class of the object which caused the exception * \param selector The selector which doesn't accept the argument * \return An initialized invalid argument exception */ - initWithClass: (Class)class andSelector: (SEL)selector; @end /** * An OFException indicating that the encoding is invalid for this object. */ @interface OFInvalidEncodingException: OFException {} @end /** |
︙ | ︙ |