Enum NSURLErrorCode

    • Enum Constant Detail

      • CannotConnectToHost

        public static final NSURLErrorCode CannotConnectToHost
      • NetworkConnectionLost

        public static final NSURLErrorCode NetworkConnectionLost
      • HTTPTooManyRedirects

        public static final NSURLErrorCode HTTPTooManyRedirects
      • ResourceUnavailable

        public static final NSURLErrorCode ResourceUnavailable
      • NotConnectedToInternet

        public static final NSURLErrorCode NotConnectedToInternet
      • RedirectToNonExistentLocation

        public static final NSURLErrorCode RedirectToNonExistentLocation
      • BadServerResponse

        public static final NSURLErrorCode BadServerResponse
      • UserCancelledAuthentication

        public static final NSURLErrorCode UserCancelledAuthentication
      • UserAuthenticationRequired

        public static final NSURLErrorCode UserAuthenticationRequired
      • ZeroByteResource

        public static final NSURLErrorCode ZeroByteResource
      • CannotDecodeRawData

        public static final NSURLErrorCode CannotDecodeRawData
      • CannotDecodeContentData

        public static final NSURLErrorCode CannotDecodeContentData
      • CannotParseResponse

        public static final NSURLErrorCode CannotParseResponse
      • AppTransportSecurityRequiresSecureConnection

        public static final NSURLErrorCode AppTransportSecurityRequiresSecureConnection
        Since:
        Available in iOS 9.0 and later.
      • FileDoesNotExist

        public static final NSURLErrorCode FileDoesNotExist
      • NoPermissionsToReadFile

        public static final NSURLErrorCode NoPermissionsToReadFile
      • DataLengthExceedsMaximum

        public static final NSURLErrorCode DataLengthExceedsMaximum
        Since:
        Available in iOS 2.0 and later.
      • FileOutsideSafeArea

        public static final NSURLErrorCode FileOutsideSafeArea
        Since:
        Available in iOS 10.3 and later.
      • SecureConnectionFailed

        public static final NSURLErrorCode SecureConnectionFailed
      • ServerCertificateHasBadDate

        public static final NSURLErrorCode ServerCertificateHasBadDate
      • ServerCertificateUntrusted

        public static final NSURLErrorCode ServerCertificateUntrusted
      • ServerCertificateHasUnknownRoot

        public static final NSURLErrorCode ServerCertificateHasUnknownRoot
      • ServerCertificateNotYetValid

        public static final NSURLErrorCode ServerCertificateNotYetValid
      • ClientCertificateRejected

        public static final NSURLErrorCode ClientCertificateRejected
      • ClientCertificateRequired

        public static final NSURLErrorCode ClientCertificateRequired
      • CannotLoadFromNetwork

        public static final NSURLErrorCode CannotLoadFromNetwork
      • CannotCreateFile

        public static final NSURLErrorCode CannotCreateFile
      • CannotWriteToFile

        public static final NSURLErrorCode CannotWriteToFile
      • CannotRemoveFile

        public static final NSURLErrorCode CannotRemoveFile
      • DownloadDecodingFailedMidStream

        public static final NSURLErrorCode DownloadDecodingFailedMidStream
      • DownloadDecodingFailedToComplete

        public static final NSURLErrorCode DownloadDecodingFailedToComplete
      • InternationalRoamingOff

        public static final NSURLErrorCode InternationalRoamingOff
        Since:
        Available in iOS 3.0 and later.
      • CallIsActive

        public static final NSURLErrorCode CallIsActive
        Since:
        Available in iOS 3.0 and later.
      • DataNotAllowed

        public static final NSURLErrorCode DataNotAllowed
        Since:
        Available in iOS 3.0 and later.
      • RequestBodyStreamExhausted

        public static final NSURLErrorCode RequestBodyStreamExhausted
        Since:
        Available in iOS 3.0 and later.
      • BackgroundSessionRequiresSharedContainer

        public static final NSURLErrorCode BackgroundSessionRequiresSharedContainer
        Since:
        Available in iOS 8.0 and later.
      • BackgroundSessionInUseByAnotherProcess

        public static final NSURLErrorCode BackgroundSessionInUseByAnotherProcess
        Since:
        Available in iOS 8.0 and later.
      • BackgroundSessionWasDisconnected

        public static final NSURLErrorCode BackgroundSessionWasDisconnected
        Since:
        Available in iOS 8.0 and later.
    • Method Detail

      • values

        public static NSURLErrorCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NSURLErrorCode c : NSURLErrorCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NSURLErrorCode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • value

        public long value()
        Specified by:
        value in interface org.robovm.rt.bro.ValuedEnum
      • valueOf

        public static NSURLErrorCode valueOf​(long n)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        n - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null