From 1935a12096ad737edf5ec94e5b7a18980566f9ab Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 24 Jun 2008 18:49:02 +0200 Subject: Remove class MLKError. --- MLKStream.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'MLKStream.m') diff --git a/MLKStream.m b/MLKStream.m index 86426e5..c80e6ff 100644 --- a/MLKStream.m +++ b/MLKStream.m @@ -17,9 +17,10 @@ */ #import "MLKStream.h" -#import "MLKError.h" #import "runtime-compatibility.h" +#import + @implementation MLKStream -(MLKStream *) init; @@ -85,7 +86,8 @@ // NSLog (@"%d bytes read", bytes_read); if (!bytes_read) { - [[MLKError errorWithMessage:@"Tried to read beyond end of file."] raise]; + [NSException raise:@"MLKStreamError" + format:@"Tried to read beyond end of file."]; } tmpstr = [[NSString alloc] initWithBytesNoCopy:buffer @@ -106,7 +108,8 @@ -(void) unreadChar:(unichar)ch { if (_charCached) - [[MLKError errorWithMessage:@"Attempted to UNREAD-CHAR twice in a row."] raise]; + [NSException raise:@"MLKInvalidOperationError" + format:@"Attempted to UNREAD-CHAR twice in a row."]; _charCached = YES; _cachedChar = ch; -- cgit v1.2.3