-
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
ErrorCategorythat 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 toGenericSwiftErrorto get Apple’s original error:if let appleCause = theoError.cause as? GenericSwiftError { let appleError = appleCause.error as NSError }Declaration
Swift
var cause: THEOBaseError? { get }