Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
try {
throw new Exception("E2")
} catch {
case ex: Exception if ex.getMessage == "E1" =>
println("caught E1")
case ex: Exception if ex.getMessage == "E2" =>
println("caught E2")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.