ObjFW  Diff

Differences From Artifact [13ae2563a0]:

To Artifact [e04692d9ff]:


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
+ exceptionWithClass: (Class)class_
{
	return [[[self alloc] initWithClass: class_] autorelease];
}

- init
{
	Class c = isa;
	[self release];
	@throw [OFNotImplementedException exceptionWithClass: c
						    selector: _cmd];
}

- initWithClass: (Class)class_
{







|







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
+ exceptionWithClass: (Class)class_
{
	return [[[self alloc] initWithClass: class_] autorelease];
}

- init
{
	Class c = [self class];
	[self release];
	@throw [OFNotImplementedException exceptionWithClass: c
						    selector: _cmd];
}

- initWithClass: (Class)class_
{
58
59
60
61
62
63
64
65

66
67
68
69

- (OFString*)description
{
	if (description != nil)
		return description;

	description = [[OFString alloc] initWithFormat:
	    @"An exception of class %@ occurred in class %@", isa, inClass];


	return description;
}
@end







|
>




58
59
60
61
62
63
64
65
66
67
68
69
70

- (OFString*)description
{
	if (description != nil)
		return description;

	description = [[OFString alloc] initWithFormat:
	    @"An exception of class %@ occurred in class %@",
	    object_getClass(self), inClass];

	return description;
}
@end