mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 13:54:06 -06:00
17 lines
414 B
Swift
17 lines
414 B
Swift
/// A protocol for a service that can report non-fatal errors for investigation.
|
|
///
|
|
public protocol ErrorReporter: AnyObject {
|
|
// MARK: Properties
|
|
|
|
/// Whether collecting non-fatal errors and crash reports is enabled.
|
|
var isEnabled: Bool { get set }
|
|
|
|
// MARK: Methods
|
|
|
|
/// Logs an error to be reported.
|
|
///
|
|
/// - Parameter error: The error to log.
|
|
///
|
|
func log(error: Error)
|
|
}
|