capture raw exception