mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36781 72102866-910b-0410-8b05-ffd578937521
98 lines
3 KiB
Objective-C
98 lines
3 KiB
Objective-C
/* Interface for NSURLError for GNUstep
|
|
Copyright (C) 2006 Software Foundation, Inc.
|
|
|
|
Written by: Richard Frith-Macdonald <frm@gnu.org>
|
|
Date: 2006
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Library General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library; if not, write to the Free
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
Boston, MA 02111 USA.
|
|
*/
|
|
|
|
#ifndef __NSURLError_h_GNUSTEP_BASE_INCLUDE
|
|
#define __NSURLError_h_GNUSTEP_BASE_INCLUDE
|
|
#import <GNUstepBase/GSVersionMacros.h>
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_2,GS_API_LATEST) && GS_API_VERSION( 11300,GS_API_LATEST)
|
|
|
|
#import <Foundation/NSObject.h>
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
@class NSString;
|
|
|
|
/**
|
|
* The domain for a URL error.
|
|
*/
|
|
extern NSString * const NSURLErrorDomain;
|
|
|
|
/**
|
|
* Obtain the URL which caused the failure
|
|
*/
|
|
extern NSString * const NSErrorFailingURLStringKey;
|
|
|
|
/**
|
|
* Error codes for URL errors
|
|
*/
|
|
enum
|
|
{
|
|
NSURLErrorUnknown = -1,
|
|
NSURLErrorCancelled = -999,
|
|
NSURLErrorBadURL = -1000,
|
|
NSURLErrorTimedOut = -1001,
|
|
NSURLErrorUnsupportedURL = -1002,
|
|
NSURLErrorCannotFindHost = -1003,
|
|
NSURLErrorCannotConnectToHost = -1004,
|
|
NSURLErrorNetworkConnectionLost = -1005,
|
|
NSURLErrorDNSLookupFailed = -1006,
|
|
NSURLErrorHTTPTooManyRedirects = -1007,
|
|
NSURLErrorResourceUnavailable = -1008,
|
|
NSURLErrorNotConnectedToInternet = -1009,
|
|
NSURLErrorRedirectToNonExistentLocation = -1010,
|
|
NSURLErrorBadServerResponse = -1011,
|
|
NSURLErrorUserCancelledAuthentication = -1012,
|
|
NSURLErrorUserAuthenticationRequired = -1013,
|
|
NSURLErrorZeroByteResource = -1014,
|
|
NSURLErrorFileDoesNotExist = -1100,
|
|
NSURLErrorFileIsDirectory = -1101,
|
|
NSURLErrorNoPermissionsToReadFile = -1102,
|
|
NSURLErrorSecureConnectionFailed = -1200,
|
|
NSURLErrorServerCertificateHasBadDate = -1201,
|
|
NSURLErrorServerCertificateUntrusted = -1202,
|
|
NSURLErrorServerCertificateHasUnknownRoot = -1203,
|
|
NSURLErrorServerCertificateNotYetValid = -1204,
|
|
NSURLErrorClientCertificateRejected = -1205,
|
|
NSURLErrorCannotLoadFromNetwork = -2000,
|
|
|
|
NSURLErrorCannotCreateFile = -3000,
|
|
NSURLErrorCannotOpenFile = -3001,
|
|
NSURLErrorCannotCloseFile = -3002,
|
|
NSURLErrorCannotWriteToFile = -3003,
|
|
NSURLErrorCannotRemoveFile = -3004,
|
|
NSURLErrorCannotMoveFile = -3005,
|
|
NSURLErrorDownloadDecodingFailedMidStream = -3006,
|
|
NSURLErrorDownloadDecodingFailedToComplete = -3007
|
|
};
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|