i think technically you don't need the `as Ex` and this can just be replaced with `raise`