123456789101112131415 |
- import Foundation
- public enum RxOptionalError: Error, CustomStringConvertible {
- case foundNilWhileUnwrappingOptional(Any.Type)
- case emptyOccupiable(Any.Type)
- public var description: String {
- switch self {
- case .foundNilWhileUnwrappingOptional(let type):
- return "Found nil while trying to unwrap type <\(String(describing: type))>"
- case .emptyOccupiable(let type):
- return "Empty occupiable of type <\(String(describing: type))>"
- }
- }
- }
|