1 /* Interface for FoundationErrors for GNUstep 2 Copyright (C) 2008 Free Software Foundation, Inc. 3 4 Written by: Richard Frith-Macdonald <rfm@gnu.org> 5 Date: 2008 6 7 This file is part of the GNUstep Base Library. 8 9 This library is free software; you can redistribute it and/or 10 modify it under the terms of the GNU Lesser General Public 11 License as published by the Free Software Foundation; either 12 version 2 of the License, or (at your option) any later version. 13 14 This library is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 Lesser General Public License for more details. 18 19 You should have received a copy of the GNU Lesser General Public 20 License along with this library; if not, write to the Free 21 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 Boston, MA 02110 USA. 23 */ 24 25 #ifndef __FoundationErrors_h_GNUSTEP_BASE_INCLUDE 26 #define __FoundationErrors_h_GNUSTEP_BASE_INCLUDE 27 28 #import <GNUstepBase/GSVersionMacros.h> 29 #import <Foundation/NSObject.h> 30 31 #if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST) 32 33 /* These are those of the NSError code values for the NSCocoaErrorDomain 34 * which are defined in the foundation/base library. 35 */ 36 37 enum 38 { 39 40 NSFileErrorMaximum = 1023, 41 NSFileErrorMinimum = 0, 42 NSFileLockingError = 255, 43 NSFileNoSuchFileError = 4, 44 NSFileReadCorruptFileError = 259, 45 NSFileReadInapplicableStringEncodingError = 261, 46 NSFileReadInvalidFileNameError = 258, 47 NSFileReadNoPermissionError = 257, 48 NSFileReadNoSuchFileError = 260, 49 NSFileReadUnknownError = 256, 50 NSFileReadUnsupportedSchemeError = 262, 51 NSFileWriteInapplicableStringEncodingError = 517, 52 NSFileWriteInvalidFileNameError = 514, 53 NSFileWriteFileExistsError = 516, 54 NSFileWriteNoPermissionError = 513, 55 NSFileWriteOutOfSpaceError = 640, 56 NSFileWriteUnknownError = 512, 57 NSFileWriteUnsupportedSchemeError = 518, 58 NSFormattingError = 2048, 59 NSFormattingErrorMaximum = 2559, 60 NSFormattingErrorMinimum = 2048, 61 NSKeyValueValidationError = 1024, 62 NSUserCancelledError = 3072, 63 NSValidationErrorMaximum = 2047, 64 NSValidationErrorMinimum = 1024, 65 66 #if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST) 67 NSExecutableArchitectureMismatchError = 3585, 68 NSExecutableErrorMaximum = 3839, 69 NSExecutableErrorMinimum = 3584, 70 NSExecutableLinkError = 3588, 71 NSExecutableLoadError = 3587, 72 NSExecutableNotLoadableError = 3584, 73 NSExecutableRuntimeMismatchError = 3586, 74 NSFileReadTooLargeError = 263, 75 NSFileReadUnknownStringEncodingError = 264, 76 #endif 77 78 GSFoundationPlaceHolderError = 9999 79 }; 80 81 #endif 82 #endif 83 84