Closest thing will be catching a generic exception...
# getting-started
b
Closest thing will be catching a generic exception and use a when block inside your catch