Raise exception via nsassert.