Add exception assertion.