RouteErrorHandling
public protocol RouteErrorHandling
实现RouteErrorHandling完成路由错误的集中处理
-
handle(error:Default implementation) 处理所有错误,已有默认实现,无需实现
Default Implementation
Declaration
Swift
func handle(error: Error)Parameters
error任意错误
-
处理路由错误
Declaration
Swift
func handleRouteError(_ error: RouteError)Parameters
error一个
RouteError实例 -
处理自定义错误
Declaration
Swift
func handleCustomError(_ error: Error)Parameters
error用户自定义的错误
RouteErrorHandling Protocol Reference