THEOError

public protocol THEOError : THEOBaseError

An error that is thrown by THEOplayer.

  • The date at which the error occured.

    Declaration

    Swift

    var timestamp: Date { get }
  • A THEOErrorCode that indicates the type of error that has occurred.

    Declaration

    Swift

    var code: THEOErrorCode { get }
  • An ErrorCategory that indicates the category of the error that has occurred.

    Declaration

    Swift

    var category: ErrorCategory { get }
  • The underlying cause of this error, if known.

    Remark

    For errors from Apple’s frameworks (for example AVFoundation, CoreMedia or URL loading), cast it to GenericSwiftError to get Apple’s original error: if let appleCause = theoError.cause as? GenericSwiftError { let appleError = appleCause.error as NSError }

    Declaration

    Swift

    var cause: THEOBaseError? { get }