20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#import "OFThreadStartFailedException.h"
#import "OFString.h"
#import "OFThread.h"
@implementation OFThreadStartFailedException
@synthesize thread = _thread, errNo = _errNo;
+ (instancetype)exceptionWithThread: (OFThread *)thread
errNo: (int)errNo
{
return [[[self alloc] initWithThread: thread
errNo: errNo] autorelease];
}
- (instancetype)initWithThread: (OFThread *)thread
errNo: (int)errNo
{
self = [super init];
_thread = [thread retain];
_errNo = errNo;
return self;
|
|
<
|
<
|
<
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#import "OFThreadStartFailedException.h"
#import "OFString.h"
#import "OFThread.h"
@implementation OFThreadStartFailedException
@synthesize thread = _thread, errNo = _errNo;
+ (instancetype)exceptionWithThread: (OFThread *)thread errNo: (int)errNo
{
return [[[self alloc] initWithThread: thread errNo: errNo] autorelease];
}
- (instancetype)initWithThread: (OFThread *)thread errNo: (int)errNo
{
self = [super init];
_thread = [thread retain];
_errNo = errNo;
return self;
|