diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-24 18:49:02 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-24 18:49:02 +0200 |
commit | 1935a12096ad737edf5ec94e5b7a18980566f9ab (patch) | |
tree | 7f6ccbfabd78fcb3ae8bcd3934de1793d38f3359 /MLKStream.m | |
parent | e074f91e6aa1a895000673b1ac4df6266ba47094 (diff) |
Remove class MLKError.
Diffstat (limited to 'MLKStream.m')
-rw-r--r-- | MLKStream.m | 9 |
1 files changed, 6 insertions, 3 deletions
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 <Foundation/NSException.h> + @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; |