Contents

manager(_:errorOccurred:)

Tells the delegate when an error occurs.

Declaration

func manager(_ manager: CMWaterSubmersionManager, errorOccurred error: any Error)

Parameters

  • manager:

    The manager for water submersion data.

  • error:

    An error object that contains information about the error.

Mentioned in

Discussion

Implement this method to respond to errors.

// Respond to errors.
nonisolated func manager(_ manager: CMWaterSubmersionManager, errorOccurred error: Error) {
    logger.error("*** An error occurred: \(error.localizedDescription) ***")
}

See Also

Receiving updates