Define predifined Generic Exceptions.
Ask by Tarun Kumar
Updated 18 Sep 2020
Cocoa provides predefined number of generic exceptions. NSException.h file provides the generic exception names and all of these exception names are string constants.
Here is some of generic exception names:
- NSGenericException
- NSRangeException
- NSInvalidArgumentException
- NSObjectInaccessibleException
- NSObjectNotAvailableException
- NSDestinationInvalidException
- NSPortTimeoutException
- NSInvalidSendPortException
- NSInvalidReceivePortException and more…
Some subsystems of Cocoa defines their own exception names like:
- NSInconsistentArchiveException
- NSFileHandleOperationException