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:
mccallum 1996-03-26 19:35:47 +00:00
parent 9aa534aee8
commit 6c5e0d54bb
6 changed files with 91 additions and 44 deletions

View file

@ -37,6 +37,7 @@
#include <Foundation/NSString.h>
#include <Foundation/NSArray.h>
#include <Foundation/NSCharacterSet.h>
#include <Foundation/NSException.h>
#include <Foundation/NSValue.h>
#include <objects/IndexedCollection.h>
#include <objects/IndexedCollectionPrivate.h>
@ -133,7 +134,8 @@ handle_printf_atsign (FILE *stream,
if (register_printf_function ('@',
(printf_function)handle_printf_atsign,
NULL))
[self error: "register printf handling of %%@ failed"];
[NSException raise: NSGenericException
format: @"register printf handling of %%@ failed"];
#endif /* HAVE_REGISTER_PRINTF_FUNCTION */
}
}