00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include <sys/types.h>
00018
00019 #import "OFObject.h"
00020
00021 @class OFString;
00022
00035 @interface OFAllocFailedException: OFObject
00039 - (OFString*)description;
00040 @end
00041
00051 @interface OFException: OFObject
00052 {
00053 Class inClass;
00054 OFString *description;
00055 }
00056
00057 #ifdef OF_HAVE_PROPERTIES
00058 @property (readonly, nonatomic) Class inClass;
00059 #endif
00060
00067 + newWithClass: (Class)class_;
00068
00075 - initWithClass: (Class)class_;
00076
00080 - (Class)inClass;
00081
00085 - (OFString*)description;
00086 @end
00087
00091 @interface OFOutOfMemoryException: OFException
00092 {
00093 size_t requestedSize;
00094 }
00095
00096 #ifdef OF_HAVE_PROPERTIES
00097 @property (readonly) size_t requestedSize;
00098 #endif
00099
00105 + newWithClass: (Class)class_
00106 requestedSize: (size_t)size;
00107
00115 - initWithClass: (Class)class_
00116 requestedSize: (size_t)size;
00117
00121 - (size_t)requestedSize;
00122 @end
00123
00128 @interface OFEnumerationMutationException: OFException {}
00129 @end
00130
00134 @interface OFMemoryNotPartOfObjectException: OFException
00135 {
00136 void *pointer;
00137 }
00138
00139 #ifdef OF_HAVE_PROPERTIES
00140 @property (readonly) void *pointer;
00141 #endif
00142
00148 + newWithClass: (Class)class_
00149 pointer: (void*)ptr;
00150
00158 - initWithClass: (Class)class_
00159 pointer: (void*)ptr;
00160
00164 - (void*)pointer;
00165 @end
00166
00171 @interface OFNotImplementedException: OFException
00172 {
00173 SEL selector;
00174 }
00175
00176 #ifdef OF_HAVE_PROPERTIES
00177 @property (readonly) SEL selector;
00178 #endif
00179
00185 + newWithClass: (Class)class_
00186 selector: (SEL)selector;
00187
00195 - initWithClass: (Class)class_
00196 selector: (SEL)selector;
00197
00201 - (SEL)selector;
00202 @end
00203
00207 @interface OFOutOfRangeException: OFException {}
00208 @end
00209
00213 @interface OFInvalidArgumentException: OFException
00214 {
00215 SEL selector;
00216 }
00217
00218 #ifdef OF_HAVE_PROPERTIES
00219 @property (readonly) SEL selector;
00220 #endif
00221
00227 + newWithClass: (Class)class_
00228 selector: (SEL)selector;
00229
00237 - initWithClass: (Class)class_
00238 selector: (SEL)selector;
00239
00243 - (SEL)selector;
00244 @end
00245
00249 @interface OFInvalidEncodingException: OFException {}
00250 @end
00251
00255 @interface OFInvalidFormatException: OFException {}
00256 @end
00257
00262 @interface OFMalformedXMLException: OFException {}
00263 @end
00264
00268 @interface OFInitializationFailedException: OFException {}
00269 @end
00270
00274 @interface OFOpenFileFailedException: OFException
00275 {
00276 OFString *path;
00277 OFString *mode;
00278 int errNo;
00279 }
00280
00281 #ifdef OF_HAVE_PROPERTIES
00282 @property (readonly, nonatomic) OFString *path;
00283 @property (readonly, nonatomic) OFString *mode;
00284 @property (readonly) int errNo;
00285 #endif
00286
00293 + newWithClass: (Class)class_
00294 path: (OFString*)path
00295 mode: (OFString*)mode;
00296
00305 - initWithClass: (Class)class_
00306 path: (OFString*)path
00307 mode: (OFString*)mode;
00308
00312 - (int)errNo;
00313
00317 - (OFString*)path;
00318
00322 - (OFString*)mode;
00323 @end
00324
00328 @interface OFReadOrWriteFailedException: OFException
00329 {
00330 size_t requestedSize;
00331 int errNo;
00332 }
00333
00334 #ifdef OF_HAVE_PROPERTIES
00335 @property (readonly) size_t requestedSize;
00336 @property (readonly) int errNo;
00337 #endif
00338
00344 + newWithClass: (Class)class_
00345 requestedSize: (size_t)size;
00346
00354 - initWithClass: (Class)class_
00355 requestedSize: (size_t)size;
00356
00360 - (int)errNo;
00361
00365 - (size_t)requestedSize;
00366 @end
00367
00371 @interface OFReadFailedException: OFReadOrWriteFailedException {}
00372 @end
00373
00377 @interface OFWriteFailedException: OFReadOrWriteFailedException {}
00378 @end
00379
00383 @interface OFSeekFailedException: OFException
00384 {
00385 int errNo;
00386 }
00387
00388 #ifdef OF_HAVE_PROPERTIES
00389 @property (readonly) int errNo;
00390 #endif
00391
00395 - (int)errNo;
00396 @end
00397
00401 @interface OFCreateDirectoryFailedException: OFException
00402 {
00403 OFString *path;
00404 int errNo;
00405 }
00406
00407 #ifdef OF_HAVE_PROPERTIES
00408 @property (readonly, nonatomic) OFString *path;
00409 @property (readonly) int errNo;
00410 #endif
00411
00417 + newWithClass: (Class)class_
00418 path: (OFString*)path;
00419
00427 - initWithClass: (Class)class_
00428 path: (OFString*)path;
00429
00433 - (int)errNo;
00434
00438 - (OFString*)path;
00439 @end
00440
00444 @interface OFChangeDirectoryFailedException: OFException
00445 {
00446 OFString *path;
00447 int errNo;
00448 }
00449
00450 #ifdef OF_HAVE_PROPERTIES
00451 @property (readonly, nonatomic) OFString *path;
00452 @property (readonly) int errNo;
00453 #endif
00454
00461 + newWithClass: (Class)class_
00462 path: (OFString*)path;
00463
00472 - initWithClass: (Class)class_
00473 path: (OFString*)path;
00474
00478 - (int)errNo;
00479
00483 - (OFString*)path;
00484 @end
00485
00489 @interface OFChangeFileModeFailedException: OFException
00490 {
00491 OFString *path;
00492 mode_t mode;
00493 int errNo;
00494 }
00495
00496 #ifdef OF_HAVE_PROPERTIES
00497 @property (readonly, nonatomic) OFString *path;
00498 @property (readonly) mode_t mode;
00499 @property (readonly) int errNo;
00500 #endif
00501
00508 + newWithClass: (Class)class_
00509 path: (OFString*)path
00510 mode: (mode_t)mode;
00511
00520 - initWithClass: (Class)class_
00521 path: (OFString*)path
00522 mode: (mode_t)mode;
00523
00527 - (int)errNo;
00528
00532 - (OFString*)path;
00533
00537 - (mode_t)mode;
00538 @end
00539
00540 #ifndef _WIN32
00541
00544 @interface OFChangeFileOwnerFailedException: OFException
00545 {
00546 OFString *path;
00547 OFString *owner;
00548 OFString *group;
00549 int errNo;
00550 }
00551
00552 #ifdef OF_HAVE_PROPERTIES
00553 @property (readonly, nonatomic) OFString *path;
00554 @property (readonly, nonatomic) OFString *owner;
00555 @property (readonly, nonatomic) OFString *group;
00556 @property (readonly) int errNo;
00557 #endif
00558
00566 + newWithClass: (Class)class_
00567 path: (OFString*)path
00568 owner: (OFString*)owner
00569 group: (OFString*)group;
00570
00580 - initWithClass: (Class)class_
00581 path: (OFString*)path
00582 owner: (OFString*)owner
00583 group: (OFString*)group;
00584
00588 - (int)errNo;
00589
00593 - (OFString*)path;
00594
00598 - (OFString*)owner;
00599
00603 - (OFString*)group;
00604 @end
00605 #endif
00606
00610 @interface OFCopyFileFailedException: OFException
00611 {
00612 OFString *sourcePath;
00613 OFString *destinationPath;
00614 int errNo;
00615 }
00616
00617 #ifdef OF_HAVE_PROPERTIES
00618 @property (readonly, nonatomic) OFString *sourcePath;
00619 @property (readonly, nonatomic) OFString *destinationPath;
00620 @property (readonly) int errNo;
00621 #endif
00622
00629 + newWithClass: (Class)class_
00630 sourcePath: (OFString*)src
00631 destinationPath: (OFString*)dst;
00632
00641 - initWithClass: (Class)class_
00642 sourcePath: (OFString*)src
00643 destinationPath: (OFString*)dst;
00644
00648 - (int)errNo;
00649
00653 - (OFString*)sourcePath;
00654
00658 - (OFString*)destinationPath;
00659 @end
00660
00664 @interface OFRenameFileFailedException: OFException
00665 {
00666 OFString *sourcePath;
00667 OFString *destinationPath;
00668 int errNo;
00669 }
00670
00671 #ifdef OF_HAVE_PROPERTIES
00672 @property (readonly, nonatomic) OFString *sourcePath;
00673 @property (readonly, nonatomic) OFString *destinationPath;
00674 @property (readonly) int errNo;
00675 #endif
00676
00683 + newWithClass: (Class)class_
00684 sourcePath: (OFString*)src
00685 destinationPath: (OFString*)dst;
00686
00695 - initWithClass: (Class)class_
00696 sourcePath: (OFString*)src
00697 destinationPath: (OFString*)dst;
00698
00702 - (int)errNo;
00703
00707 - (OFString*)sourcePath;
00708
00712 - (OFString*)destinationPath;
00713 @end
00714
00718 @interface OFDeleteFileFailedException: OFException
00719 {
00720 OFString *path;
00721 int errNo;
00722 }
00723
00724 #ifdef OF_HAVE_PROPERTIES
00725 @property (readonly, nonatomic) OFString *path;
00726 @property (readonly) int errNo;
00727 #endif
00728
00734 + newWithClass: (Class)class_
00735 path: (OFString*)path;
00736
00744 - initWithClass: (Class)class_
00745 path: (OFString*)path;
00746
00750 - (int)errNo;
00751
00755 - (OFString*)path;
00756 @end
00757
00761 @interface OFDeleteDirectoryFailedException: OFException
00762 {
00763 OFString *path;
00764 int errNo;
00765 }
00766
00767 #ifdef OF_HAVE_PROPERTIES
00768 @property (readonly, nonatomic) OFString *path;
00769 @property (readonly) int errNo;
00770 #endif
00771
00777 + newWithClass: (Class)class_
00778 path: (OFString*)path;
00779
00787 - initWithClass: (Class)class_
00788 path: (OFString*)path;
00789
00793 - (int)errNo;
00794
00798 - (OFString*)path;
00799 @end
00800
00801 #ifndef _WIN32
00802
00805 @interface OFLinkFailedException: OFException
00806 {
00807 OFString *sourcePath;
00808 OFString *destinationPath;
00809 int errNo;
00810 }
00811
00812 #ifdef OF_HAVE_PROPERTIES
00813 @property (readonly, nonatomic) OFString *sourcePath;
00814 @property (readonly, nonatomic) OFString *destinationPath;
00815 @property (readonly) int errNo;
00816 #endif
00817
00824 + newWithClass: (Class)class_
00825 sourcePath: (OFString*)src
00826 destinationPath: (OFString*)dest;
00827
00836 - initWithClass: (Class)class_
00837 sourcePath: (OFString*)src
00838 destinationPath: (OFString*)dest;
00839
00843 - (int)errNo;
00844
00848 - (OFString*)sourcePath;
00849
00853 - (OFString*)destinationPath;
00854 @end
00855
00859 @interface OFSymlinkFailedException: OFException
00860 {
00861 OFString *sourcePath;
00862 OFString *destinationPath;
00863 int errNo;
00864 }
00865
00866 #ifdef OF_HAVE_PROPERTIES
00867 @property (readonly, nonatomic) OFString *sourcePath;
00868 @property (readonly, nonatomic) OFString *destinationPath;
00869 @property (readonly) int errNo;
00870 #endif
00871
00878 + newWithClass: (Class)class_
00879 sourcePath: (OFString*)src
00880 destinationPath: (OFString*)dest;
00881
00890 - initWithClass: (Class)class_
00891 sourcePath: (OFString*)src
00892 destinationPath: (OFString*)dest;
00893
00897 - (int)errNo;
00898
00902 - (OFString*)sourcePath;
00903
00907 - (OFString*)destinationPath;
00908 @end
00909 #endif
00910
00914 @interface OFSetOptionFailedException: OFException {}
00915 @end
00916
00920 @interface OFNotConnectedException: OFException {}
00921 @end
00922
00927 @interface OFAlreadyConnectedException: OFException {}
00928 @end
00929
00933 @interface OFAddressTranslationFailedException: OFException
00934 {
00935 OFString *node;
00936 OFString *service;
00937 int errNo;
00938 }
00939
00940 #ifdef OF_HAVE_PROPERTIES
00941 @property (readonly, nonatomic) OFString *node;
00942 @property (readonly, nonatomic) OFString *service;
00943 @property (readonly) int errNo;
00944 #endif
00945
00952 + newWithClass: (Class)class_
00953 node: (OFString*)node
00954 service: (OFString*)service;
00955
00964 - initWithClass: (Class)class_
00965 node: (OFString*)node
00966 service: (OFString*)service;
00967
00971 - (int)errNo;
00972
00976 - (OFString*)node;
00977
00981 - (OFString*)service;
00982 @end
00983
00987 @interface OFConnectionFailedException: OFException
00988 {
00989 OFString *node;
00990 OFString *service;
00991 int errNo;
00992 }
00993
00994 #ifdef OF_HAVE_PROPERTIES
00995 @property (readonly, nonatomic) OFString *node;
00996 @property (readonly, nonatomic) OFString *service;
00997 @property (readonly) int errNo;
00998 #endif
00999
01006 + newWithClass: (Class)class_
01007 node: (OFString*)node
01008 service: (OFString*)service;
01009
01018 - initWithClass: (Class)class_
01019 node: (OFString*)node
01020 service: (OFString*)service;
01021
01025 - (int)errNo;
01026
01030 - (OFString*)node;
01031
01035 - (OFString*)service;
01036 @end
01037
01041 @interface OFBindFailedException: OFException
01042 {
01043 OFString *node;
01044 OFString *service;
01045 int family;
01046 int errNo;
01047 }
01048
01049 #ifdef OF_HAVE_PROPERTIES
01050 @property (readonly, nonatomic) OFString *node;
01051 @property (readonly, nonatomic) OFString *service;
01052 @property (readonly) int family;
01053 @property (readonly) int errNo;
01054 #endif
01055
01063 + newWithClass: (Class)class_
01064 node: (OFString*)node
01065 service: (OFString*)service
01066 family: (int)family;
01067
01077 - initWithClass: (Class)class_
01078 node: (OFString*)node
01079 service: (OFString*)service
01080 family: (int)family;
01081
01085 - (int)errNo;
01086
01090 - (OFString*)node;
01091
01095 - (OFString*)service;
01096
01100 - (int)family;
01101 @end
01102
01106 @interface OFListenFailedException: OFException
01107 {
01108 int backLog;
01109 int errNo;
01110 }
01111
01112 #ifdef OF_HAVE_PROPERTIES
01113 @property (readonly) int backLog;
01114 @property (readonly) int errNo;
01115 #endif
01116
01122 + newWithClass: (Class)class_
01123 backLog: (int)backlog;
01124
01132 - initWithClass: (Class)class_
01133 backLog: (int)backlog;
01134
01138 - (int)errNo;
01139
01143 - (int)backLog;
01144 @end
01145
01149 @interface OFAcceptFailedException: OFException
01150 {
01151 int errNo;
01152 }
01153
01154 #ifdef OF_HAVE_PROPERTIES
01155 @property (readonly) int errNo;
01156 #endif
01157
01161 - (int)errNo;
01162 @end
01163
01167 @interface OFThreadStartFailedException: OFException {}
01168 @end
01169
01173 @interface OFThreadJoinFailedException: OFException {}
01174 @end
01175
01179 @interface OFThreadStillRunningException: OFException {}
01180 @end
01181
01185 @interface OFMutexLockFailedException: OFException {}
01186 @end
01187
01191 @interface OFMutexUnlockFailedException: OFException {}
01192 @end
01193
01197 @interface OFHashAlreadyCalculatedException: OFException {}
01198 @end
01199
01203 @interface OFUnboundNamespaceException: OFException
01204 {
01205 OFString *ns;
01206 OFString *prefix;
01207 }
01208
01209 #ifdef OF_HAVE_PROPERTIES
01210 @property (readonly, nonatomic) OFString *namespace;
01211 @property (readonly, nonatomic) OFString *prefix;
01212 #endif
01213
01219 + newWithClass: (Class)class_
01220 namespace: (OFString*)ns;
01221
01227 + newWithClass: (Class)class_
01228 prefix: (OFString*)prefix;
01229
01237 - initWithClass: (Class)class_
01238 namespace: (OFString*)ns;
01239
01247 - initWithClass: (Class)class_
01248 prefix: (OFString*)prefix;
01249
01253 - (OFString*)namespace;
01254
01258 - (OFString*)prefix;
01259 @end