Overview
Comment: | OFOpenItemFailedException: Remove path |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c62f1c55ac8ef6af061539e5ebe2e75d |
User & Date: | js on 2022-04-25 19:09:29 |
Other Links: | manifest | tags |
Context
2022-04-25
| ||
20:09 | Revert "OFOpenItemFailedException: Remove path" check-in: 1185c1cd3d user: js tags: trunk | |
19:14 | More reordering for consistency check-in: 8cb6fafdc0 user: js tags: trunk | |
19:09 | OFOpenItemFailedException: Remove path check-in: c62f1c55ac user: js tags: trunk | |
19:01 | More declaration reordering check-in: d9fb19b0a1 user: js tags: trunk | |
Changes
Modified src/OFFile.m from [6d43aa3c50] to [ca29a7a55a].
︙ | |||
234 235 236 237 238 239 240 | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 | - - - + + + + | handle = open( [path cStringWithEncoding: [OFLocale encoding]], flags, 0666); # endif if (handle == -1) @throw [OFOpenItemFailedException |
︙ | |||
268 269 270 271 272 273 274 275 | 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | + - - - + + + + + - - - + + + | errNo = EACCES; break; default: errNo = 0; break; } URL = [OFURL fileURLWithPath: path]; @throw [OFOpenItemFailedException |
︙ |
Modified src/OFString.m from [05a5b5b79b] to [f2f791550d].
︙ | |||
1002 1003 1004 1005 1006 1007 1008 | 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 | - - - + + + | OFFile *file = nil; @try { fileSize = [[OFFileManager defaultManager] attributesOfItemAtPath: path].fileSize; } @catch (OFRetrieveItemAttributesFailedException *e) { @throw [OFOpenItemFailedException |
︙ |
Modified src/OFZIPArchive.m from [2bbedc5f4d] to [b017bd11e7].
︙ | |||
33 34 35 36 37 38 39 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | - | #import "OFInflate64Stream.h" #import "OFChecksumMismatchException.h" #import "OFInvalidArgumentException.h" #import "OFInvalidFormatException.h" #import "OFNotImplementedException.h" #import "OFNotOpenException.h" |
︙ | |||
438 439 440 441 442 443 444 | 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 | - + - - | if (_stream == nil) @throw [OFNotOpenException exceptionWithObject: self]; if (_mode != modeRead) @throw [OFInvalidArgumentException exception]; if ((entry = [_pathToEntryMap objectForKey: path]) == nil) |
︙ | |||
494 495 496 497 498 499 500 | 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 | - + - - - | if (_mode != modeWrite && _mode != modeAppend) @throw [OFInvalidArgumentException exception]; pool = objc_autoreleasePoolPush(); entry = [[entry_ mutableCopy] autorelease]; if ([_pathToEntryMap objectForKey: entry.fileName] != nil) |
︙ |
Modified src/exceptions/OFOpenItemFailedException.h from [f84d68c6f2] to [bc86e5de05].
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - - + + - - + - - - - - | * @class OFOpenItemFailedException \ * OFOpenItemFailedException.h ObjFW/OFOpenItemFailedException.h * * @brief An exception indicating an item could not be opened. */ @interface OFOpenItemFailedException: OFException { |
︙ | |||
63 64 65 66 67 68 69 | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | - - - - - - - - - - - - - - - - - - - - - - - - | */ + (instancetype)exceptionWithURL: (OFURL *)URL mode: (nullable OFString *)mode errNo: (int)errNo; + (instancetype)exception OF_UNAVAILABLE; |
Modified src/exceptions/OFOpenItemFailedException.m from [2ae9f29630] to [1a7c4cc489].
︙ | |||
16 17 18 19 20 21 22 | 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | - + - - - - - - + - - - - - - - + - - - - + - - - - + - - - - - - - - - - - - - - - - - - - + - + | #include "config.h" #import "OFOpenItemFailedException.h" #import "OFString.h" #import "OFURL.h" @implementation OFOpenItemFailedException |