raise exception on more error types.