ErrorView
public final class ErrorView
The class to handle UI errors
-
Initializer to initialize the class with errors to be displayed and the ViewController responsible to display the errors
Declaration
Swift
public init(viewController: UIViewController, error: HyperwalletErrorType, pageName: String, pageGroup: String)Parameters
viewControllerview controller that contains errors
errorhyperwallet error
pageNameThe Page or screen that is currently visible
pageGroupThe group of the Page or screen that is currently visible
-
To show error messages
Declaration
Swift
public func show(_ handler: (() -> Void)?)Parameters
handlerhandler to either remain on same UI page or go back to previous
View on GitHub