ios/GlobalTestHelpers/Support/BitwardenTestError.swift
2023-08-24 09:10:00 -05:00

20 lines
531 B
Swift

import Foundation
// MARK: BitwardenTestError
/// An example error type used in tests to properly test that methods properly `throws`
/// or `rethrows` errors.
///
/// These errors will typically be provided to a mocked type to be thrown at the
/// appropriate time. XCAssertThrows
public enum BitwardenTestError: LocalizedError {
case example
public var errorDescription: String? {
switch self {
case .example:
return "An example error used to test throwing capabilities."
}
}
}