mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Use NSException instead of sending -error: in all methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1275 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7f329b4714
commit
9b7e65f4e0
1 changed files with 9 additions and 5 deletions
|
@ -551,8 +551,9 @@ static int messages_received_count;
|
|||
|
||||
/* get the method types from the selector */
|
||||
#if NeXT_runtime
|
||||
[self error:
|
||||
"sorry, distributed objects does not work with the NeXT runtime"];
|
||||
[NSException
|
||||
raise: NSGenericException
|
||||
format: @"Sorry, distributed objects does not work with NeXT runtime"];
|
||||
/* type = [object selectorTypeForProxy:sel]; */
|
||||
#else
|
||||
type = sel_get_type(sel);
|
||||
|
@ -716,7 +717,8 @@ static int messages_received_count;
|
|||
assert (is_valid);
|
||||
[self invalidate];
|
||||
if (receiving_connection == self)
|
||||
[self error: "connection waiting for request was shut down"];
|
||||
[NSException raise: NSGenericException
|
||||
format: @"connection waiting for request was shut down"];
|
||||
[self dealloc]; // xxx release instead? YES!!
|
||||
[rmc dismiss];
|
||||
}
|
||||
|
@ -861,7 +863,8 @@ static int messages_received_count;
|
|||
break;
|
||||
}
|
||||
default:
|
||||
[self error:"unrecognized ConnectedDecoder identifier"];
|
||||
[NSException raise: NSGenericException
|
||||
format: @"unrecognized ConnectedDecoder identifier"];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1051,7 +1054,8 @@ static int messages_received_count;
|
|||
assert([aProxy connectionForProxy] == self);
|
||||
[proxiesHashGate lock];
|
||||
if (NSMapGet (remote_proxies, (void*)target))
|
||||
[self error:"Trying to add the same proxy twice"];
|
||||
[NSException raise: NSGenericException
|
||||
format: @"Trying to add the same proxy twice"];
|
||||
NSMapInsert (remote_proxies, (void*)target, aProxy);
|
||||
[proxiesHashGate unlock];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue