save()) { throw new \RuntimeException('Saving error.'); } } public function remove(Settings $settings): void { if (!$settings->delete()) { throw new \RuntimeException('Removing error.'); } } }