Comment: | Pass the condition for condition exceptions. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b7142607c2935d09372a920de8f92679 |
User & Date: | js on 2011-03-25 15:48:50 |
Other Links: | manifest | tags |
2011-03-27
| ||
17:16 | Pass offset and whence for OFSeekFailedExceptions. check-in: b940af1dd6 user: js tags: trunk | |
2011-03-25
| ||
15:48 | Pass the condition for condition exceptions. check-in: b7142607c2 user: js tags: trunk | |
15:22 | Pass the mutex for mutex exceptions. check-in: 343e80e785 user: js tags: trunk | |
Modified ObjFW.xcodeproj/project.pbxproj from [b560d7e111] to [184f3ea38a].
︙ | |||
86 87 88 89 90 91 92 | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | - | 4B29BC51133AC7DD0004B236 /* OFDeleteDirectoryFailedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B29BC49133AC7DC0004B236 /* OFDeleteDirectoryFailedException.m */; }; 4B29BC52133AC7DD0004B236 /* OFDeleteFileFailedException.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B29BC4A133AC7DC0004B236 /* OFDeleteFileFailedException.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4B29BC53133AC7DD0004B236 /* OFDeleteFileFailedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B29BC4B133AC7DC0004B236 /* OFDeleteFileFailedException.m */; }; 4B29BC57133AC8420004B236 /* OFRenameFileFailedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B29BC55133AC81B0004B236 /* OFRenameFileFailedException.m */; }; 4B29BC58133AC8540004B236 /* OFConditionBroadcastFailedException.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B8B1701133A3B8E007CD8B3 /* OFConditionBroadcastFailedException.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4B29BC59133AC8540004B236 /* OFConditionSignalFailedException.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B8B1703133A3B8E007CD8B3 /* OFConditionSignalFailedException.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4B29BC5A133AC8540004B236 /* OFConditionWaitFailedException.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B8B1705133A3B8E007CD8B3 /* OFConditionWaitFailedException.h */; settings = {ATTRIBUTES = (Public, ); }; }; |
︙ | |||
200 201 202 203 204 205 206 207 208 209 210 211 | 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | + + - | 4B55A113133AC24600B58A93 /* OFReadFailedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B55A10D133AC24500B58A93 /* OFReadFailedException.m */; }; 4B55A114133AC24600B58A93 /* OFReadOrWriteFailedException.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B55A10E133AC24500B58A93 /* OFReadOrWriteFailedException.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4B55A115133AC24600B58A93 /* OFReadOrWriteFailedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B55A10F133AC24500B58A93 /* OFReadOrWriteFailedException.m */; }; 4B55A116133AC24600B58A93 /* OFWriteFailedException.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B55A110133AC24500B58A93 /* OFWriteFailedException.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4B55A117133AC24600B58A93 /* OFWriteFailedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B55A111133AC24600B58A93 /* OFWriteFailedException.m */; }; 4B7FF3B0133CE6DE00000324 /* OFMutexStillLockedException.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B7FF3AE133CE6DE00000324 /* OFMutexStillLockedException.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4B7FF3B1133CE6DE00000324 /* OFMutexStillLockedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7FF3AF133CE6DE00000324 /* OFMutexStillLockedException.m */; }; 4B7FF3B4133CED6200000324 /* OFConditionStillWaitingException.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B7FF3B2133CED6100000324 /* OFConditionStillWaitingException.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4B7FF3B5133CED6200000324 /* OFConditionStillWaitingException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7FF3B3133CED6100000324 /* OFConditionStillWaitingException.m */; }; 4B8B16FE133A3B84007CD8B3 /* OFHashAlreadyCalculatedException.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B8B16FC133A3B84007CD8B3 /* OFHashAlreadyCalculatedException.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4B8B16FF133A3B84007CD8B3 /* OFHashAlreadyCalculatedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B8B16FD133A3B84007CD8B3 /* OFHashAlreadyCalculatedException.m */; }; 4B8B170D133A3C11007CD8B3 /* OFConditionBroadcastFailedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B8B1702133A3B8E007CD8B3 /* OFConditionBroadcastFailedException.m */; }; 4B8B170E133A3C11007CD8B3 /* OFConditionSignalFailedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B8B1704133A3B8E007CD8B3 /* OFConditionSignalFailedException.m */; }; 4B8B170F133A3C11007CD8B3 /* OFConditionWaitFailedException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B8B1706133A3B8E007CD8B3 /* OFConditionWaitFailedException.m */; }; |
︙ | |||
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 | 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 | + + - - | 4B6EF67F1235358D0076B512 /* PropertiesTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PropertiesTests.m; path = tests/PropertiesTests.m; sourceTree = SOURCE_ROOT; }; 4B6EF6801235358D0076B512 /* TestsAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TestsAppDelegate.h; path = tests/TestsAppDelegate.h; sourceTree = SOURCE_ROOT; }; 4B6EF6811235358D0076B512 /* TestsAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TestsAppDelegate.m; path = tests/TestsAppDelegate.m; sourceTree = SOURCE_ROOT; }; 4B6EF684123535B60076B512 /* TestPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TestPlugin.m; path = tests/plugin/TestPlugin.m; sourceTree = SOURCE_ROOT; }; 4B6EF685123535C80076B512 /* test.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = test.m; path = tests/objc_sync/test.m; sourceTree = SOURCE_ROOT; }; 4B7FF3AE133CE6DE00000324 /* OFMutexStillLockedException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OFMutexStillLockedException.h; path = src/exceptions/OFMutexStillLockedException.h; sourceTree = "<group>"; }; 4B7FF3AF133CE6DE00000324 /* OFMutexStillLockedException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OFMutexStillLockedException.m; path = src/exceptions/OFMutexStillLockedException.m; sourceTree = "<group>"; }; 4B7FF3B2133CED6100000324 /* OFConditionStillWaitingException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OFConditionStillWaitingException.h; path = src/exceptions/OFConditionStillWaitingException.h; sourceTree = "<group>"; }; 4B7FF3B3133CED6100000324 /* OFConditionStillWaitingException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OFConditionStillWaitingException.m; path = src/exceptions/OFConditionStillWaitingException.m; sourceTree = "<group>"; }; 4B8B16FC133A3B84007CD8B3 /* OFHashAlreadyCalculatedException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OFHashAlreadyCalculatedException.h; path = src/exceptions/OFHashAlreadyCalculatedException.h; sourceTree = "<group>"; }; 4B8B16FD133A3B84007CD8B3 /* OFHashAlreadyCalculatedException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OFHashAlreadyCalculatedException.m; path = src/exceptions/OFHashAlreadyCalculatedException.m; sourceTree = "<group>"; }; 4B8B1701133A3B8E007CD8B3 /* OFConditionBroadcastFailedException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OFConditionBroadcastFailedException.h; path = src/exceptions/OFConditionBroadcastFailedException.h; sourceTree = "<group>"; }; 4B8B1702133A3B8E007CD8B3 /* OFConditionBroadcastFailedException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OFConditionBroadcastFailedException.m; path = src/exceptions/OFConditionBroadcastFailedException.m; sourceTree = "<group>"; }; 4B8B1703133A3B8E007CD8B3 /* OFConditionSignalFailedException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OFConditionSignalFailedException.h; path = src/exceptions/OFConditionSignalFailedException.h; sourceTree = "<group>"; }; 4B8B1704133A3B8E007CD8B3 /* OFConditionSignalFailedException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OFConditionSignalFailedException.m; path = src/exceptions/OFConditionSignalFailedException.m; sourceTree = "<group>"; }; 4B8B1705133A3B8E007CD8B3 /* OFConditionWaitFailedException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OFConditionWaitFailedException.h; path = src/exceptions/OFConditionWaitFailedException.h; sourceTree = "<group>"; }; 4B8B1706133A3B8E007CD8B3 /* OFConditionWaitFailedException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OFConditionWaitFailedException.m; path = src/exceptions/OFConditionWaitFailedException.m; sourceTree = "<group>"; }; |
︙ | |||
619 620 621 622 623 624 625 626 627 | 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 | + + - - | 4B29BC45133AC7DB0004B236 /* OFChangeFileOwnerFailedException.m */, 4B29BC35133AC4E80004B236 /* OFChangeFileModeFailedException.h */, 4B29BC36133AC4E80004B236 /* OFChangeFileModeFailedException.m */, 4B8B1701133A3B8E007CD8B3 /* OFConditionBroadcastFailedException.h */, 4B8B1702133A3B8E007CD8B3 /* OFConditionBroadcastFailedException.m */, 4B8B1703133A3B8E007CD8B3 /* OFConditionSignalFailedException.h */, 4B8B1704133A3B8E007CD8B3 /* OFConditionSignalFailedException.m */, 4B7FF3B2133CED6100000324 /* OFConditionStillWaitingException.h */, 4B7FF3B3133CED6100000324 /* OFConditionStillWaitingException.m */, 4B8B1705133A3B8E007CD8B3 /* OFConditionWaitFailedException.h */, 4B8B1706133A3B8E007CD8B3 /* OFConditionWaitFailedException.m */, |
︙ | |||
980 981 982 983 984 985 986 987 | 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 | + - | 4B90B78D133AD46700BD33CB /* OFAlreadyConnectedException.h in Headers */, 4B90B7A2133AD87D00BD33CB /* OFBindFailedException.h in Headers */, 4B29BC3B133AC4E80004B236 /* OFChangeDirectoryFailedException.h in Headers */, 4B29BC3D133AC4E80004B236 /* OFChangeFileModeFailedException.h in Headers */, 4B29BC4C133AC7DD0004B236 /* OFChangeFileOwnerFailedException.h in Headers */, 4B29BC58133AC8540004B236 /* OFConditionBroadcastFailedException.h in Headers */, 4B29BC59133AC8540004B236 /* OFConditionSignalFailedException.h in Headers */, 4B7FF3B4133CED6200000324 /* OFConditionStillWaitingException.h in Headers */, 4B29BC5A133AC8540004B236 /* OFConditionWaitFailedException.h in Headers */, |
︙ | |||
1225 1226 1227 1228 1229 1230 1231 1232 | 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 | + - | 4B90B78E133AD46700BD33CB /* OFAlreadyConnectedException.m in Sources */, 4B90B7A3133AD87D00BD33CB /* OFBindFailedException.m in Sources */, 4B29BC3C133AC4E80004B236 /* OFChangeDirectoryFailedException.m in Sources */, 4B29BC3E133AC4E80004B236 /* OFChangeFileModeFailedException.m in Sources */, 4B29BC4D133AC7DD0004B236 /* OFChangeFileOwnerFailedException.m in Sources */, 4B8B170D133A3C11007CD8B3 /* OFConditionBroadcastFailedException.m in Sources */, 4B8B170E133A3C11007CD8B3 /* OFConditionSignalFailedException.m in Sources */, 4B7FF3B5133CED6200000324 /* OFConditionStillWaitingException.m in Sources */, 4B8B170F133A3C11007CD8B3 /* OFConditionWaitFailedException.m in Sources */, |
︙ |
Modified src/OFThread.m from [35bdf0d696] to [fd76b79d25].
︙ | |||
26 27 28 29 30 31 32 | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | - - + + | #import "OFThread.h" #import "OFList.h" #import "OFDate.h" #import "OFAutoreleasePool.h" #import "OFConditionBroadcastFailedException.h" #import "OFConditionSignalFailedException.h" |
︙ | |||
432 433 434 435 436 437 438 | 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 | - + + - + + - + + + - + + | return self; } - (void)wait { if (!of_condition_wait(&condition, &mutex)) |
Modified src/ObjFW.h from [c77982332c] to [933896ffed].
︙ | |||
60 61 62 63 64 65 66 | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | - - + + | #import "OFAlreadyConnectedException.h" #import "OFBindFailedException.h" #import "OFChangeDirectoryFailedException.h" #import "OFChangeFileModeFailedException.h" #import "OFChangeFileOwnerFailedException.h" #import "OFConditionBroadcastFailedException.h" #import "OFConditionSignalFailedException.h" |
︙ |
Modified src/exceptions/Makefile from [b8cc4e14ea] to [f45b67542a].
︙ | |||
9 10 11 12 13 14 15 16 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | + - | OFAlreadyConnectedException.m \ OFBindFailedException.m \ OFChangeDirectoryFailedException.m \ OFChangeFileModeFailedException.m \ OFChangeFileOwnerFailedException.m \ OFConditionBroadcastFailedException.m \ OFConditionSignalFailedException.m \ OFConditionStillWaitingException.m \ OFConditionWaitFailedException.m \ |
︙ |
Modified src/exceptions/OFConditionBroadcastFailedException.h from [aacbc46ecb] to [e12b7ee71b].
︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 | 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 48 49 50 51 52 53 54 55 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFException.h" @class OFCondition; /** * \brief An exception indicating broadcasting a condition failed. */ @interface OFConditionBroadcastFailedException: OFException { OFCondition *condition; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFCondition *condition; #endif /** * \param class_ The class of the object which caused the exception * \param condition The condition which could not be broadcasted * \return A new condition broadcast failed exception */ + newWithClass: (Class)class_ condition: (OFCondition*)condition; /** * Initializes an already allocated condition broadcast failed exception. * * \param class_ The class of the object which caused the exception * \param condition The condition which could not be broadcasted * \return An initialized condition broadcast failed exception */ - initWithClass: (Class)class_ condition: (OFCondition*)condition; /** * \return The condition which could not be broadcasted */ - (OFCondition*)condition; @end |
Modified src/exceptions/OFConditionBroadcastFailedException.m from [ecf2dfcdf7] to [e2f7203d01].
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 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 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 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | * file. */ #include "config.h" #import "OFConditionBroadcastFailedException.h" #import "OFString.h" #import "OFNotImplementedException.h" @implementation OFConditionBroadcastFailedException + newWithClass: (Class)class_ condition: (OFCondition*)condition { return [[self alloc] initWithClass: class_ condition: condition]; } - initWithClass: (Class)class_ { Class c = isa; [self release]; @throw [OFNotImplementedException newWithClass: c selector: _cmd]; } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; @try { condition = [condition_ retain]; } @catch (id e) { [self release]; @throw e; } return self; } - (void)dealloc { [condition release]; [super dealloc]; } - (OFString*)description { if (description != nil) return description; description = [[OFString alloc] initWithFormat: @"Broadcasting a condition of type %@ failed!", inClass]; return description; } - (OFCondition*)condition { return condition; } @end |
Modified src/exceptions/OFConditionSignalFailedException.h from [14a7a58b5f] to [f77723c6e0].
︙ | |||
12 13 14 15 16 17 18 19 | 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 48 49 50 51 52 53 54 55 | + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFException.h" @class OFCondition; /** |
Modified src/exceptions/OFConditionSignalFailedException.m from [c5c1ae1d76] to [18c8107daf].
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 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 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 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | * file. */ #include "config.h" #import "OFConditionSignalFailedException.h" #import "OFString.h" #import "OFNotImplementedException.h" @implementation OFConditionSignalFailedException + newWithClass: (Class)class_ condition: (OFCondition*)condition { return [[self alloc] initWithClass: class_ condition: condition]; } - initWithClass: (Class)class_ { Class c = isa; [self release]; @throw [OFNotImplementedException newWithClass: c selector: _cmd]; } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; @try { condition = [condition_ retain]; } @catch (id e) { [self release]; @throw e; } return self; } - (void)dealloc { [condition release]; [super dealloc]; } - (OFString*)description { if (description != nil) return description; description = [[OFString alloc] initWithFormat: @"Signaling a condition of type %@ failed!", inClass]; return description; } - (OFCondition*)condition { return condition; } @end |
Added src/exceptions/OFConditionStillWaitingException.h version [8a6b485889].
|
Added src/exceptions/OFConditionStillWaitingException.m version [72bd604d13].
|
Modified src/exceptions/OFConditionWaitFailedException.h from [b68294cfc5] to [58c72c5dc6].
︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 | 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 48 49 50 51 52 53 54 55 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFException.h" @class OFCondition; /** * \brief An exception indicating waiting for a condition failed. */ @interface OFConditionWaitFailedException: OFException { OFCondition *condition; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFCondition *condition; #endif /** * \param class_ The class of the object which caused the exception * \param condition The condition for which could not be waited * \return A new condition wait failed exception */ + newWithClass: (Class)class_ condition: (OFCondition*)condition; /** * Initializes an already allocated condition wait failed exception. * * \param class_ The class of the object which caused the exception * \param condition The condition for which could not be waited * \return An initialized condition wait failed exception */ - initWithClass: (Class)class_ condition: (OFCondition*)condition; /** * \return The condition for which could not be waited */ - (OFCondition*)condition; @end |
Modified src/exceptions/OFConditionWaitFailedException.m from [f3848c3722] to [395ad03884].
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 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 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 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | * file. */ #include "config.h" #import "OFConditionWaitFailedException.h" #import "OFString.h" #import "OFNotImplementedException.h" @implementation OFConditionWaitFailedException + newWithClass: (Class)class_ condition: (OFCondition*)condition { return [[self alloc] initWithClass: class_ condition: condition]; } - initWithClass: (Class)class_ { Class c = isa; [self release]; @throw [OFNotImplementedException newWithClass: c selector: _cmd]; } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; @try { condition = [condition_ retain]; } @catch (id e) { [self release]; @throw e; } return self; } - (void)dealloc { [condition release]; [super dealloc]; } - (OFString*)description { if (description != nil) return description; description = [[OFString alloc] initWithFormat: @"Waiting for a condition of type %@ failed!", inClass]; return description; } - (OFCondition*)condition { return condition; } @end |
Deleted src/exceptions/OFConditionWaitingException.h version [0dde5609d3].
| - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted src/exceptions/OFConditionWaitingException.m version [ff534bc5b5].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|