Error API

  • A basic error that is thrown by THEOPlayer.

    See more

    Declaration

    Swift

    public protocol THEOBaseError
  • An error that is thrown by THEOplayer.

    See more

    Declaration

    Swift

    public protocol THEOError : THEOBaseError
  • A network error.

    See more

    Declaration

    Swift

    public protocol NetworkError : THEOError
  • An error that is thrown by AVPlayer.

    See more

    Declaration

    Swift

    public protocol AVPlayerError : THEOError
  • An error that holds a Swift or Apple error.

    Remark

    When THEOplayer reports an error from Apple’s frameworks (for example AVFoundation, CoreMedia or URL loading), the cause of the THEOplayer error is a GenericSwiftError holding Apple’s original error, unchanged.
    See more

    Declaration

    Swift

    public struct GenericSwiftError : THEOBaseError
  • A code that indicates the type of error that has occurred.

    See more

    Declaration

    Swift

    public enum THEOErrorCode : Int32, Codable, CaseIterable
  • The Error category a TheoErrorCode belongs to.

    See more

    Declaration

    Swift

    public enum ErrorCategory : Int32, Codable, CaseIterable