Error

extension Error
  • Returns the instance cast as an AFError.

    Declaration

    Swift

    public var asAFError: AFError? { get }
  • Returns the instance cast as an AFError. If casting fails, a fatalError with the specified message is thrown.

    Declaration

    Swift

    public func asAFError(orFailWith message: @autoclosure () -> String, file: StaticString = #file, line: UInt = #line) -> AFError