-
-
Save sturdysturge/9ad0cb3c7d90faf01b98fa3b92d8682f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
@available(iOS 16.0, *) | |
struct MyErrors { | |
static var wrongError: Never { | |
fatalError("That was wrong") | |
} | |
static var badError: Never { | |
fatalError("That was bad") | |
} | |
static var worstError: Never { | |
fatalError("That was the worst") | |
} | |
static func createError(text: String) -> Never { | |
fatalError(text) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment