MoyaError
public extension MoyaError
extension MoyaError: ErrorWithCause
extension MoyaError: ErrorConvertible
-
The server response as string if any.
Declaration
Swift
var responseString: String? { get }
-
Depending on error type, returns an
Error
object.Declaration
Swift
public var error: Swift.Error? { get }
-
Get
RestErrors
from this error data.Declaration
Swift
public var restErrors: RestErrors? { get }
-
true
if there is rest errors. If you need to know that and userestErrors
, prefer userestErrors
directly.Declaration
Swift
public var isRestError: Bool { get }
-
Undocumented
Declaration
Swift
public static func error(from underlying: Swift.Error) -> MoyaError