mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Use NSException instead of sending -error: in all methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1273 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9536fdc257
commit
5aae0eafb3
6 changed files with 91 additions and 44 deletions
|
@ -454,10 +454,12 @@ my_object_is_class(id object)
|
|||
sel_types =
|
||||
sel_get_type (sel_get_any_typed_uid (sel_get_name (sel)));
|
||||
#endif
|
||||
if (!sel_name) [self error:"ObjC runtime didn't provide SEL name"];
|
||||
if (!*sel_name) [self error:"ObjC runtime didn't provide SEL name"];
|
||||
if (!sel_types) [self error:"ObjC runtime didn't provide SEL type"];
|
||||
if (!*sel_types) [self error:"ObjC runtime didn't provide SEL type"];
|
||||
if (!sel_name || !*sel_name)
|
||||
[NSException raise: NSGenericException
|
||||
format: @"ObjC runtime didn't provide SEL name"];
|
||||
if (!sel_types || !*sel_types)
|
||||
[NSException raise: NSGenericException
|
||||
format: @"ObjC runtime didn't provide SEL type"];
|
||||
|
||||
[self _coderCreateReferenceForConstPtr: sel];
|
||||
[self encodeValueOfCType: @encode(char*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue