Add exceptions for MacOS-X compatibility.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26325 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-03-17 05:45:55 +00:00
parent 508c7a2402
commit 9f68dcebcf
6 changed files with 78 additions and 41 deletions

View file

@ -109,6 +109,8 @@ extern NSRunLoop *GSRunLoopForThread(NSThread*);
#define M_LOCK(X) {NSDebugMLLog(@"GSConnection",@"Lock %@",X);[X lock];}
#define M_UNLOCK(X) {NSDebugMLLog(@"GSConnection",@"Unlock %@",X);[X unlock];}
NSString * const NSDestinationInvalidException =
@"NSDestinationInvalidException";
NSString * const NSFailedAuthenticationException =
@"NSFailedAuthenticationExceptions";
NSString * const NSObjectInaccessibleException =

View file

@ -656,6 +656,9 @@ GSListModules()
@end
NSString* const NSCharacterConversionException
= @"NSCharacterConversionException";
NSString* const NSGenericException
= @"NSGenericException";
@ -668,15 +671,15 @@ NSString* const NSInvalidArgumentException
NSString* const NSMallocException
= @"NSMallocException";
NSString* const NSRangeException
= @"NSRangeException";
NSString* const NSCharacterConversionException
= @"NSCharacterConversionException";
NSString* const NSOldStyleException
= @"NSOldStyleException";
NSString* const NSParseErrorException
= @"NSParseErrorException";
NSString* const NSRangeException
= @"NSRangeException";
static void _terminate()
{
BOOL shouldAbort;

View file

@ -49,11 +49,16 @@
@implementation NSPort
/**
* Exception raised if a timeout occurs during a port send or receive
* operation.
*/
NSString * const NSPortTimeoutException = @"NSPortTimeoutException";
NSString * const NSInvalidReceivePortException
= @"NSInvalidReceivePortException";
NSString * const NSInvalidSendPortException
= @"NSInvalidSendPortException";
NSString * const NSPortReceiveException
= @"NSPortReceiveException";
NSString * const NSPortSendException
= @"NSPortSendException";
NSString * const NSPortTimeoutException
= @"NSPortTimeoutException";
static Class NSPort_abstract_class;
static Class NSPort_concrete_class;