What's the best way to throw an exception in objective-c/cocoa?
Objective-c – throwing an exception in objective-c/cocoa
cocoaexception handlingobjective c
Related Topic
- Ios – Constants in Objective-C
- Ios – How to check for an active Internet connection on iOS or macOS
- Ios – How to check if a string contains another string in Objective-C
- Python – Catch multiple exceptions in one line (except block)
- Node.js Best Practice Exception Handling
- Ruby – Why is it bad style to `rescue Exception => e` in Ruby
- Cocoa Autolayout: content hugging vs content compression resistance priority
Best Answer
I use
[NSException raise:format:]
as follows: