Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yanamura/ynmnicecatch
exception handler for Swift
https://github.com/yanamura/ynmnicecatch
Last synced: 22 days ago
JSON representation
exception handler for Swift
- Host: GitHub
- URL: https://github.com/yanamura/ynmnicecatch
- Owner: yanamura
- Created: 2014-10-11T15:04:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-11T15:16:49.000Z (almost 10 years ago)
- Last Synced: 2024-10-27T08:23:08.394Z (2 months ago)
- Language: Objective-C
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YNMNiceCatch
============YNMNiceCatch is Objective-C library, but for Swift.
Swift cannot handle exception, YNMNiceCatch help to handle exception.## Feature
1. post NSNotification when catch Exception
2. nice catch : ignore exception## Sample
notification
```
NSNotificationCenter.defaultCenter().addObserver(
self,
selector: "methodName",
name: YNM_EXCEPTION_NOTIFICATION,
object: nil)YNMNiceCatch.exceptionNotification { () -> AnyObject! in
// call method which may raise exception
}
```Nice Catch
```
YNMNiceCatch.niceCatch { () -> AnyObject! in
// call method which may raise exception
}
```## How to use
To use Acom to your iOS applications, follow these 4 easy steps:1. Clone the YNMNiceCatch repository
2. Add YNMNiceCatch.xcodeproj to your test target
3. Link YNMNiceCatch.framework
4. import YNMNiceCatch## License
MIT