Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
error10 swift
do {
try divide(4, by: 0)
} catch DivisionError.ByZero {
print("Division by zero is not allowed")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment