home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / NeXTanswers / OpenStepSpec_rtf / FoundationKit / Classes / NSException.rtf < prev    next >
Encoding:
Text File  |  1994-07-01  |  4.0 KB  |  71 lines

  1. {\rtf0\ansi\paperw16228 \paperh18648 \margl-907 \margr0 \margt0 \margb0 {\fonttbl\f0\fswiss Helvetica;\f1\froman Times;\f2\fmodern Courier;\f3\ftech Symbol;\f4\froman Palatino;}
  2. {\stylesheet{\s0 \li100 \fi0 \ri1007 \ql   1Head;}
  3. {\s1 \li100 \fi0 \ri1007 \ql   ClassName;}
  4. {\s2 \li2872 \fi-2771 \ri1007 \ql \tx2872   ConformsTo;}
  5. {\s3 \li2872 \fi-2771 \ri1007 \ql   DeclaredIn;}
  6. {\s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030   Description;}
  7. {\s5 \li7030 \fi-5796 \ri1007 \ql   DescriptionPart;}
  8. {\s6 \li0 \fi0 \ri0 \ql \tx-25 \tx8290 \tx9172   Footer;}
  9. {\s7 \li2872 \fi-2771 \ri1007 \ql \tx2872   InheritsFrom;}
  10. {\s8 \li100 \fi0 \ri1007 \ql   Summary;}
  11. }
  12. \li0 \fi0 \ri0 \ql \sb0 \f1 \fs24 
  13. (Preliminary Documentation) Copyright \f3 \'e3\f1 1994 by NeXT Computer, Inc.  All Rights Reserved.\
  14. \
  15. \s0 \li100 \fi0 \ri1007 \ql \f0 \b \fs36 \fs16 \
  16. \
  17. \
  18. \
  19. \
  20. \
  21. \
  22. \fs36 NSException \
  23. \pard \s7 \li2872 \fi-2771 \ri1007 \ql \tx2872 \f1 \b0 \fs28 \fs16 \
  24. \
  25. \
  26. \fs28 \f0 \b \fs28 Inherits From:    \b0 \fs28 \f1 NSObject \
  27. \fs16 \
  28. \fs28 \s2 \fs16 \fs28 \f0 \b \fs28 Conforms To:    \b0 \fs28 \f1 NSCoding\
  29. \fi0 NSCopying\
  30. \fi0 NSObject \
  31. \fs16 \
  32. \fs28 \s3 \fi-2771 \fs16 \fs28 \f0 \b \fs28 Declared In:    \b0 \fs28 \f1 foundation/NSException.h \
  33. \fs16 \
  34. \fs28 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs28 \fs16 \
  35. \
  36. \fs28 Creating and Raising Exceptions\
  37. \fs16 \
  38. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 + (NSException *)\b exceptionWithName:\b0 (NSString *)\i name\
  39. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0 \b reason:\b0 (NSString *)\i reason\i0     Creates an exception object, assigning it \i name \i0 as its name,\
  40. \b userInfo:\b0 (NSDictionary *)\i userInfo\i0         \i reason\i0  as its human-readable explanation, and \i userInfo\i0  as arbitrary data that will accompany the exception.\
  41. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (id)\b initWithName:\b0 (NSString *)\i name\i0     Initializes a newly allocated exception object, assigning it \
  42. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b reason:\b0 (NSString *)\i reason\i0         \i name \i0 as its name, \i reason\i0  as its human-readable\
  43. \b userInfo:\b0 (NSDictionary *)\i userInfo\i0         explanation, and \i userInfo\i0  as arbitrary data that will accompany the exception.\
  44. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 + (volatile void)\b raise:\b0 (NSString *)\i name\i0     Creates and raises an exception with name \i name\i0  and\i  \
  45. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0 \b format:\b0 (NSString *)\i format,...\i0         a reason constructed from \i format\i0  and the following arguments  in the manner of \b printf()\b0 .  The user-defined information is \b nil\b0 .  Invokes \b raise\b0  as part of its implementation.\
  46. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 + (volatile void)\b raise:\b0 (NSString *)\i name\i0     Creates and raises an exception with name \i name\i0  and\
  47. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b format:\b0 (NSString *)\i format\i0         a reason constructed from \i format\i0  and the arguments in \
  48. \b arguments:\b0 (va_list)\i argList\i0         \i argList\i0 , in the manner of \b vprintf()\b0 .  The user-defined information is \b nil\b0 .  Invokes \b raise\b0  as part of its implementation.\
  49. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (volatile void)\b raise\b0     Raises the exception, causing program flow to jump to the enclosing error handler.\
  50. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  51. \
  52. \
  53. \fs28 Querying Exceptions\
  54. \fs16 \
  55. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (NSString *)\b name\b0     Returns the exception\'27s name.  See \b exceptionWithName:reason:userInfo:\b0 .\
  56. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSString *)\b reason\b0     Returns the exception\'27s reason.  See \b exceptionWithName:reason:userInfo:\b0 .\
  57. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSDictionary *)\b userInfo\b0     Returns the exception\'27s user-defined data.  See \b exceptionWithName:reason:userInfo:\b0 .\
  58. \fi-6552 \fi-6552 \fi-6552 \
  59. \fi-6552 \pard \s0 \li100 \fi0 \ri1007 \tx478 \tx856 \tx1234 \fs28 \fs16 \
  60. \
  61. \fs28 \
  62. \fs16 \
  63. \
  64. \fs28 \pard \s0 \
  65. \li100 \fi0 \fs16 \
  66. \
  67. \fs28 \
  68. \fs16 \
  69. \
  70. \fs28 }
  71.