ErrorHandlingService

public class ErrorHandlingService

A class used to process errors into more readable format, and optionally notifiy a global error handler of every error occuring

Properties

  • Shared instance so that it can hold onto an event closure

    Declaration

    Swift

    public static let shared: ErrorHandlingService
  • Called everytime an error is parsed. Extremely useful to track / log errors globally, in order to run logic or record to external service

    Declaration

    Swift

    public var errorEventClosure: ((KukaiError) -> Void)?

Error parsers