Rename raise to raise_on_error to avoid conflicts with internal raise method