diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-09-02 12:01:30 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-09-02 12:01:30 +0200 |
commit | 34682b0b087a9ced1f23a91f67167f71f304a4a8 (patch) | |
tree | 70ef9e0a697a3fdfa194ce4819d55ce2b36fc8af /MLKFileHandleStream.m | |
parent | 84597fcf74fc74672fe664456e62ec6be5f2b066 (diff) |
Switch from NS_DURING..NS_HANDLER..NS_ENDHANDLER to @try..@catch..@finally.
Diffstat (limited to 'MLKFileHandleStream.m')
-rw-r--r-- | MLKFileHandleStream.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MLKFileHandleStream.m b/MLKFileHandleStream.m index 456cddd..7c7065e 100644 --- a/MLKFileHandleStream.m +++ b/MLKFileHandleStream.m @@ -17,6 +17,7 @@ */ #import "MLKFileHandleStream.h" +#import "MLKStreamError.h" #import "runtime-compatibility.h" #import "util.h" @@ -52,8 +53,7 @@ if ([data length] == 0) { - [NSException raise:@"MLKStreamError" - format:@"Tried to read beyond end of file."]; + @throw LAUTORELEASE ([[MLKStreamError alloc] initWithStream:self]); } return *(uint8_t*)[data bytes]; |