Adjust to reworked exception API.
This commit is contained in:
parent
bfdfabcf40
commit
7f5c58ffc7
14 changed files with 224 additions and 270 deletions
|
@ -47,9 +47,7 @@
|
|||
|
||||
@try {
|
||||
if (category == nil || type == nil)
|
||||
@throw [OFInvalidArgumentException
|
||||
exceptionWithClass: [self class]
|
||||
selector: _cmd];
|
||||
@throw [OFInvalidArgumentException exception];
|
||||
|
||||
_category = [category copy];
|
||||
_name = [name copy];
|
||||
|
@ -151,9 +149,7 @@
|
|||
return OF_ORDERED_SAME;
|
||||
|
||||
if (![object isKindOfClass: [XMPPDiscoIdentity class]])
|
||||
@throw [OFInvalidArgumentException
|
||||
exceptionWithClass: [self class]
|
||||
selector: _cmd];
|
||||
@throw [OFInvalidArgumentException exception];
|
||||
|
||||
identity = (XMPPDiscoIdentity*)object;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue