DEFINE PREDIFINED GENERIC EXCEPTIONS.

Tarun Kumar

Total Post:107

Points:535
Posted by  Tarun Kumar
 506  View(s)
Ratings:
Rate this:
  1. Tarun Kumar

    Post:107

    Points:535
    Define predifined Generic Exceptions.

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!