Check for Exception instead for X::AdHoc
when using throws_like