Home > DeveloperSection > Interviews > Define predifined Generic Exceptions.

Posted on    October-27-2015 12:32 AM

 iPhone iPhone  Ios  Objective C 
 1 Answer(s)
  456  View(s)
Rate this:

Tarun Kumar

Total Post:107

Posted on    October-27-2015 12:32 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick