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
Liked By
Write Answer
Define predifined Generic Exceptions.
Join MindStick Community
You have need login or register for voting of answers or question.
Tarun Kumar
27-Oct-2015Cocoa 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