Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (NSError*)NSErrorFromException:(NSException*)exc
- {
- NSMutableDictionary * info = [NSMutableDictionary dictionary];
- [info setValue:exc.name forKey:@"MONExceptionName"];
- [info setValue:exc.reason forKey:@"MONExceptionReason"];
- [info setValue:exc.callStackReturnAddresses forKey:@"MONExceptionCallStackReturnAddresses"];
- [info setValue:exc.callStackSymbols forKey:@"MONExceptionCallStackSymbols"];
- [info setValue:exc.userInfo forKey:@"MONExceptionUserInfo"];
- return [[NSError alloc] initWithDomain:@"MyAppName" code:-1969 userInfo:info];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement