ObjFW  Diff

Differences From Artifact [c02dc6c663]:

To Artifact [1ba940b160]:


20
21
22
23
24
25
26
27

28
29
30

31
32
33
34

35
36
37
38
39
40
41
42
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
+ (instancetype)exceptionWithThread: (OFThread *)thread errNo: (int)errNo
			      errNo: (int)errNo
{
	return [[[self alloc] initWithThread: thread
	return [[[self alloc] initWithThread: thread errNo: errNo] autorelease];
				       errNo: errNo] autorelease];
}

- (instancetype)initWithThread: (OFThread *)thread
- (instancetype)initWithThread: (OFThread *)thread errNo: (int)errNo
			 errNo: (int)errNo
{
	self = [super init];

	_thread = [thread retain];
	_errNo = errNo;

	return self;