Enum NSURLErrorCode

java.lang.Object
java.lang.Enum<NSURLErrorCode>
org.robovm.apple.foundation.NSURLErrorCode
All Implemented Interfaces:
Serializable, Comparable<NSURLErrorCode>, NSErrorCode, ValuedEnum

public enum NSURLErrorCode
extends Enum<NSURLErrorCode>
implements NSErrorCode
  • Enum Constant Details

    • Unknown

      public static final NSURLErrorCode Unknown
    • Cancelled

      public static final NSURLErrorCode Cancelled
    • BadURL

      public static final NSURLErrorCode BadURL
    • TimedOut

      public static final NSURLErrorCode TimedOut
    • UnsupportedURL

      public static final NSURLErrorCode UnsupportedURL
    • CannotFindHost

      public static final NSURLErrorCode CannotFindHost
    • CannotConnectToHost

      public static final NSURLErrorCode CannotConnectToHost
    • NetworkConnectionLost

      public static final NSURLErrorCode NetworkConnectionLost
    • DNSLookupFailed

      public static final NSURLErrorCode DNSLookupFailed
    • 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
    • FileIsDirectory

      public static final NSURLErrorCode FileIsDirectory
    • NoPermissionsToReadFile

      public static final NSURLErrorCode NoPermissionsToReadFile
    • DataLengthExceedsMaximum

      public static final NSURLErrorCode DataLengthExceedsMaximum
    • 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
    • CannotOpenFile

      public static final NSURLErrorCode CannotOpenFile
    • CannotCloseFile

      public static final NSURLErrorCode CannotCloseFile
    • CannotWriteToFile

      public static final NSURLErrorCode CannotWriteToFile
    • CannotRemoveFile

      public static final NSURLErrorCode CannotRemoveFile
    • CannotMoveFile

      public static final NSURLErrorCode CannotMoveFile
    • DownloadDecodingFailedMidStream

      public static final NSURLErrorCode DownloadDecodingFailedMidStream
    • DownloadDecodingFailedToComplete

      public static final NSURLErrorCode DownloadDecodingFailedToComplete
    • InternationalRoamingOff

      public static final NSURLErrorCode InternationalRoamingOff
    • CallIsActive

      public static final NSURLErrorCode CallIsActive
    • DataNotAllowed

      public static final NSURLErrorCode DataNotAllowed
    • RequestBodyStreamExhausted

      public static final NSURLErrorCode RequestBodyStreamExhausted
    • BackgroundSessionRequiresSharedContainer

      public static final NSURLErrorCode BackgroundSessionRequiresSharedContainer
    • BackgroundSessionInUseByAnotherProcess

      public static final NSURLErrorCode BackgroundSessionInUseByAnotherProcess
    • BackgroundSessionWasDisconnected

      public static final NSURLErrorCode BackgroundSessionWasDisconnected
  • Method Details

    • values

      public static NSURLErrorCode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static NSURLErrorCode valueOf​(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public long value()
      Specified by:
      value in interface 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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null