<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def raise_on_invalid(self, setting=True, **overrides):
 """Sets the route to raise validation errors instead of catching them"""

        return self.where(raise_on_invalid=setting, **overrides)