#golang
if err != nil { switch err.(type) { case *ErrZeroDivision: fmt.Println(err.Error()) default: fmt.Println("What the h* just happened?") } }