Differences From Artifact [e5e54a18a7]:
- File
src/XMPPExceptions.m
— part of check-in
[5df36353c6]
at
2011-02-26 14:13:40
on branch trunk
— Clean up exceptions.
The description generated by %@ is automatically released, so no need
for an autorelease pool. (user: js, size: 5277) [annotate] [blame] [check-ins using]
To Artifact [95ac10b065]:
- File src/XMPPExceptions.m — part of check-in [2f8a95152e] at 2011-03-29 01:46:20 on branch trunk — Port to ObjC 1. (user: js, size: 5437) [annotate] [blame] [check-ins using]
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | - - | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import "XMPPExceptions.h" @implementation XMPPException |
︙ | |||
68 69 70 71 72 73 74 75 76 77 | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | + + + + + - - | return description; description = [[OFString alloc] initWithFormat: @"An exception occurred in class %@!", inClass]; return description; } - (XMPPConnection*)connection { return connection; } @end @implementation XMPPStringPrepFailedException |
︙ | |||
131 132 133 134 135 136 137 138 139 140 | 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | + + + + + + + + + + - - | description = [[OFString alloc] initWithFormat: @"Stringprep with profile %@ failed on string '%@'!", profile, string]; return description; } - (OFString*)profile { return profile; } - (OFString*)string { return string; } @end @implementation XMPPIDNATranslationFailedException |
︙ | |||
193 194 195 196 197 198 199 200 201 202 | 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | + + + + + + + + + + - - | return description; description = [[OFString alloc] initWithFormat: @"IDNA operation %@ failed on string '%@'!", operation, string]; return description; } - (OFString*)operation { return operation; } - (OFString*)string { return string; } @end @implementation XMPPAuthFailedException |
︙ | |||
250 251 252 253 254 255 256 257 | 267 268 269 270 271 272 273 274 275 276 277 278 279 | + + + + + | return description; description = [[OFString alloc] initWithFormat: @"Authentication failed. Reason: %@!", reason]; return description; } - (OFString*)reason { return reason; } @end |