Raise exception instead of returning an object