00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include <sys/stat.h>
00013
00014 #import "OFObject.h"
00015
00016 @class OFString;
00017
00030 @interface OFAllocFailedException
00031 {
00032 Class isa;
00033 }
00034
00035 + (Class)class;
00036
00040 - (OFString*)string;
00041 @end
00042
00052 @interface OFException: OFObject
00053 {
00054 Class inClass;
00055 OFString *string;
00056 }
00057
00058 #ifdef OF_HAVE_PROPERTIES
00059 @property (readonly, nonatomic) Class inClass;
00060 #endif
00061
00068 + newWithClass: (Class)class_;
00069
00076 - initWithClass: (Class)class_;
00077
00081 - (Class)inClass;
00082
00086 - (OFString*)string;
00087 @end
00088
00092 @interface OFOutOfMemoryException: OFException
00093 {
00094 size_t requestedSize;
00095 }
00096
00097 #ifdef OF_HAVE_PROPERTIES
00098 @property (readonly) size_t requestedSize;
00099 #endif
00100
00106 + newWithClass: (Class)class_
00107 size: (size_t)size;
00108
00116 - initWithClass: (Class)class_
00117 size: (size_t)size;
00118
00122 - (size_t)requestedSize;
00123 @end
00124
00129 @interface OFEnumerationMutationException: OFException {}
00130 @end
00131
00135 @interface OFMemoryNotPartOfObjectException: OFException
00136 {
00137 void *pointer;
00138 }
00139
00140 #ifdef OF_HAVE_PROPERTIES
00141 @property (readonly) void *pointer;
00142 #endif
00143
00149 + newWithClass: (Class)class_
00150 pointer: (void*)ptr;
00151
00159 - initWithClass: (Class)class_
00160 pointer: (void*)ptr;
00161
00165 - (void*)pointer;
00166 @end
00167
00172 @interface OFNotImplementedException: OFException
00173 {
00174 SEL selector;
00175 }
00176
00177 #ifdef OF_HAVE_PROPERTIES
00178 @property (readonly) SEL selector;
00179 #endif
00180
00186 + newWithClass: (Class)class_
00187 selector: (SEL)selector;
00188
00196 - initWithClass: (Class)class_
00197 selector: (SEL)selector;
00198
00202 - (SEL)selector;
00203 @end
00204
00208 @interface OFOutOfRangeException: OFException {}
00209 @end
00210
00214 @interface OFInvalidArgumentException: OFException
00215 {
00216 SEL selector;
00217 }
00218
00219 #ifdef OF_HAVE_PROPERTIES
00220 @property (readonly) SEL selector;
00221 #endif
00222
00228 + newWithClass: (Class)class_
00229 selector: (SEL)selector;
00230
00238 - initWithClass: (Class)class_
00239 selector: (SEL)selector;
00240
00244 - (SEL)selector;
00245 @end
00246
00250 @interface OFInvalidEncodingException: OFException {}
00251 @end
00252
00256 @interface OFInvalidFormatException: OFException {}
00257 @end
00258
00263 @interface OFMalformedXMLException: OFException {}
00264 @end
00265
00269 @interface OFInitializationFailedException: OFException {}
00270 @end
00271
00275 @interface OFOpenFileFailedException: OFException
00276 {
00277 OFString *path;
00278 OFString *mode;
00279 int errNo;
00280 }
00281
00282 #ifdef OF_HAVE_PROPERTIES
00283 @property (readonly, nonatomic) OFString *path;
00284 @property (readonly, nonatomic) OFString *mode;
00285 @property (readonly) int errNo;
00286 #endif
00287
00294 + newWithClass: (Class)class_
00295 path: (OFString*)path
00296 mode: (OFString*)mode;
00297
00306 - initWithClass: (Class)class_
00307 path: (OFString*)path
00308 mode: (OFString*)mode;
00309
00313 - (int)errNo;
00314
00318 - (OFString*)path;
00319
00323 - (OFString*)mode;
00324 @end
00325
00329 @interface OFReadOrWriteFailedException: OFException
00330 {
00331 size_t requestedSize;
00332 int errNo;
00333 }
00334
00335 #ifdef OF_HAVE_PROPERTIES
00336 @property (readonly) size_t requestedSize;
00337 @property (readonly) int errNo;
00338 #endif
00339
00345 + newWithClass: (Class)class_
00346 size: (size_t)size;
00347
00355 - initWithClass: (Class)class_
00356 size: (size_t)size;
00357
00361 - (int)errNo;
00362
00366 - (size_t)requestedSize;
00367 @end
00368
00372 @interface OFReadFailedException: OFReadOrWriteFailedException {}
00373 @end
00374
00378 @interface OFWriteFailedException: OFReadOrWriteFailedException {}
00379 @end
00380
00384 @interface OFSeekFailedException: OFException
00385 {
00386 int errNo;
00387 }
00388
00389 #ifdef OF_HAVE_PROPERTIES
00390 @property (readonly) int errNo;
00391 #endif
00392
00396 - (int)errNo;
00397 @end
00398
00402 @interface OFCreateDirectoryFailedException: OFException
00403 {
00404 OFString *path;
00405 int errNo;
00406 }
00407
00408 #ifdef OF_HAVE_PROPERTIES
00409 @property (readonly, nonatomic) OFString *path;
00410 @property (readonly) int errNo;
00411 #endif
00412
00418 + newWithClass: (Class)class_
00419 path: (OFString*)path;
00420
00428 - initWithClass: (Class)class_
00429 path: (OFString*)path;
00430
00434 - (int)errNo;
00435
00439 - (OFString*)path;
00440 @end
00441
00445 @interface OFChangeFileModeFailedException: OFException
00446 {
00447 OFString *path;
00448 mode_t mode;
00449 int errNo;
00450 }
00451
00452 #ifdef OF_HAVE_PROPERTIES
00453 @property (readonly, nonatomic) OFString *path;
00454 @property (readonly) mode_t mode;
00455 @property (readonly) int errNo;
00456 #endif
00457
00464 + newWithClass: (Class)class_
00465 path: (OFString*)path
00466 mode: (mode_t)mode;
00467
00476 - initWithClass: (Class)class_
00477 path: (OFString*)path
00478 mode: (mode_t)mode;
00479
00483 - (int)errNo;
00484
00488 - (OFString*)path;
00489
00493 - (mode_t)mode;
00494 @end
00495
00496 #ifndef _WIN32
00497
00500 @interface OFChangeFileOwnerFailedException: OFException
00501 {
00502 OFString *path;
00503 uid_t owner;
00504 gid_t group;
00505 int errNo;
00506 }
00507
00508 #ifdef OF_HAVE_PROPERTIES
00509 @property (readonly, nonatomic) OFString *path;
00510 @property (readonly) uid_t owner;
00511 @property (readonly) gid_t group;
00512 @property (readonly) int errNo;
00513 #endif
00514
00522 + newWithClass: (Class)class_
00523 path: (OFString*)path
00524 owner: (uid_t)owner
00525 group: (gid_t)group;
00526
00536 - initWithClass: (Class)class_
00537 path: (OFString*)path
00538 owner: (uid_t)owner
00539 group: (gid_t)group;
00540
00544 - (int)errNo;
00545
00549 - (OFString*)path;
00550
00554 - (uid_t)owner;
00555
00559 - (gid_t)group;
00560 @end
00561 #endif
00562
00566 @interface OFCopyFileFailedException: OFException
00567 {
00568 OFString *sourcePath;
00569 OFString *destinationPath;
00570 int errNo;
00571 }
00572
00573 #ifdef OF_HAVE_PROPERTIES
00574 @property (readonly, nonatomic) OFString *sourcePath;
00575 @property (readonly, nonatomic) OFString *destinationPath;
00576 @property (readonly) int errNo;
00577 #endif
00578
00585 + newWithClass: (Class)class_
00586 sourcePath: (OFString*)src
00587 destinationPath: (OFString*)dst;
00588
00597 - initWithClass: (Class)class_
00598 sourcePath: (OFString*)src
00599 destinationPath: (OFString*)dst;
00600
00604 - (int)errNo;
00605
00609 - (OFString*)sourcePath;
00610
00614 - (OFString*)destinationPath;
00615 @end
00616
00620 @interface OFRenameFileFailedException: OFException
00621 {
00622 OFString *sourcePath;
00623 OFString *destinationPath;
00624 int errNo;
00625 }
00626
00627 #ifdef OF_HAVE_PROPERTIES
00628 @property (readonly, nonatomic) OFString *sourcePath;
00629 @property (readonly, nonatomic) OFString *destinationPath;
00630 @property (readonly) int errNo;
00631 #endif
00632
00639 + newWithClass: (Class)class_
00640 sourcePath: (OFString*)src
00641 destinationPath: (OFString*)dst;
00642
00651 - initWithClass: (Class)class_
00652 sourcePath: (OFString*)src
00653 destinationPath: (OFString*)dst;
00654
00658 - (int)errNo;
00659
00663 - (OFString*)sourcePath;
00664
00668 - (OFString*)destinationPath;
00669 @end
00670
00674 @interface OFDeleteFileFailedException: OFException
00675 {
00676 OFString *path;
00677 int errNo;
00678 }
00679
00680 #ifdef OF_HAVE_PROPERTIES
00681 @property (readonly, nonatomic) OFString *path;
00682 @property (readonly) int errNo;
00683 #endif
00684
00690 + newWithClass: (Class)class_
00691 path: (OFString*)path;
00692
00700 - initWithClass: (Class)class_
00701 path: (OFString*)path;
00702
00706 - (int)errNo;
00707
00711 - (OFString*)path;
00712 @end
00713
00717 @interface OFDeleteDirectoryFailedException: OFException
00718 {
00719 OFString *path;
00720 int errNo;
00721 }
00722
00723 #ifdef OF_HAVE_PROPERTIES
00724 @property (readonly, nonatomic) OFString *path;
00725 @property (readonly) int errNo;
00726 #endif
00727
00733 + newWithClass: (Class)class_
00734 path: (OFString*)path;
00735
00743 - initWithClass: (Class)class_
00744 path: (OFString*)path;
00745
00749 - (int)errNo;
00750
00754 - (OFString*)path;
00755 @end
00756
00757 #ifndef _WIN32
00758
00761 @interface OFLinkFailedException: OFException
00762 {
00763 OFString *sourcePath;
00764 OFString *destinationPath;
00765 int errNo;
00766 }
00767
00768 #ifdef OF_HAVE_PROPERTIES
00769 @property (readonly, nonatomic) OFString *sourcePath;
00770 @property (readonly, nonatomic) OFString *destinationPath;
00771 @property (readonly) int errNo;
00772 #endif
00773
00780 + newWithClass: (Class)class_
00781 sourcePath: (OFString*)src
00782 destinationPath: (OFString*)dest;
00783
00792 - initWithClass: (Class)class_
00793 sourcePath: (OFString*)src
00794 destinationPath: (OFString*)dest;
00795
00799 - (int)errNo;
00800
00804 - (OFString*)sourcePath;
00805
00809 - (OFString*)destinationPath;
00810 @end
00811
00815 @interface OFSymlinkFailedException: OFException
00816 {
00817 OFString *sourcePath;
00818 OFString *destinationPath;
00819 int errNo;
00820 }
00821
00822 #ifdef OF_HAVE_PROPERTIES
00823 @property (readonly, nonatomic) OFString *sourcePath;
00824 @property (readonly, nonatomic) OFString *destinationPath;
00825 @property (readonly) int errNo;
00826 #endif
00827
00834 + newWithClass: (Class)class_
00835 sourcePath: (OFString*)src
00836 destinationPath: (OFString*)dest;
00837
00846 - initWithClass: (Class)class_
00847 sourcePath: (OFString*)src
00848 destinationPath: (OFString*)dest;
00849
00853 - (int)errNo;
00854
00858 - (OFString*)sourcePath;
00859
00863 - (OFString*)destinationPath;
00864 @end
00865 #endif
00866
00870 @interface OFSetOptionFailedException: OFException {}
00871 @end
00872
00876 @interface OFNotConnectedException: OFException {}
00877 @end
00878
00883 @interface OFAlreadyConnectedException: OFException {}
00884 @end
00885
00889 @interface OFAddressTranslationFailedException: OFException
00890 {
00891 OFString *node;
00892 OFString *service;
00893 int errNo;
00894 }
00895
00896 #ifdef OF_HAVE_PROPERTIES
00897 @property (readonly, nonatomic) OFString *node;
00898 @property (readonly, nonatomic) OFString *service;
00899 @property (readonly) int errNo;
00900 #endif
00901
00908 + newWithClass: (Class)class_
00909 node: (OFString*)node
00910 service: (OFString*)service;
00911
00920 - initWithClass: (Class)class_
00921 node: (OFString*)node
00922 service: (OFString*)service;
00923
00927 - (int)errNo;
00928
00932 - (OFString*)node;
00933
00937 - (OFString*)service;
00938 @end
00939
00943 @interface OFConnectionFailedException: OFException
00944 {
00945 OFString *node;
00946 OFString *service;
00947 int errNo;
00948 }
00949
00950 #ifdef OF_HAVE_PROPERTIES
00951 @property (readonly, nonatomic) OFString *node;
00952 @property (readonly, nonatomic) OFString *service;
00953 @property (readonly) int errNo;
00954 #endif
00955
00962 + newWithClass: (Class)class_
00963 node: (OFString*)node
00964 service: (OFString*)service;
00965
00974 - initWithClass: (Class)class_
00975 node: (OFString*)node
00976 service: (OFString*)service;
00977
00981 - (int)errNo;
00982
00986 - (OFString*)node;
00987
00991 - (OFString*)service;
00992 @end
00993
00997 @interface OFBindFailedException: OFException
00998 {
00999 OFString *node;
01000 OFString *service;
01001 int family;
01002 int errNo;
01003 }
01004
01005 #ifdef OF_HAVE_PROPERTIES
01006 @property (readonly, nonatomic) OFString *node;
01007 @property (readonly, nonatomic) OFString *service;
01008 @property (readonly) int family;
01009 @property (readonly) int errNo;
01010 #endif
01011
01019 + newWithClass: (Class)class_
01020 node: (OFString*)node
01021 service: (OFString*)service
01022 family: (int)family;
01023
01033 - initWithClass: (Class)class_
01034 node: (OFString*)node
01035 service: (OFString*)service
01036 family: (int)family;
01037
01041 - (int)errNo;
01042
01046 - (OFString*)node;
01047
01051 - (OFString*)service;
01052
01056 - (int)family;
01057 @end
01058
01062 @interface OFListenFailedException: OFException
01063 {
01064 int backLog;
01065 int errNo;
01066 }
01067
01068 #ifdef OF_HAVE_PROPERTIES
01069 @property (readonly) int backLog;
01070 @property (readonly) int errNo;
01071 #endif
01072
01078 + newWithClass: (Class)class_
01079 backLog: (int)backlog;
01080
01088 - initWithClass: (Class)class_
01089 backLog: (int)backlog;
01090
01094 - (int)errNo;
01095
01099 - (int)backLog;
01100 @end
01101
01105 @interface OFAcceptFailedException: OFException
01106 {
01107 int errNo;
01108 }
01109
01110 #ifdef OF_HAVE_PROPERTIES
01111 @property (readonly) int errNo;
01112 #endif
01113
01117 - (int)errNo;
01118 @end
01119
01123 @interface OFThreadStartFailedException: OFException {}
01124 @end
01125
01129 @interface OFThreadJoinFailedException: OFException {}
01130 @end
01131
01135 @interface OFThreadStillRunningException: OFException {}
01136 @end
01137
01141 @interface OFMutexLockFailedException: OFException {}
01142 @end
01143
01147 @interface OFMutexUnlockFailedException: OFException {}
01148 @end
01149
01153 @interface OFHashAlreadyCalculatedException: OFException {}
01154 @end