class ScopedSearch::DefinitionError

The default exception class that is raised when there is something wrong with the scoped_search definition call.

You usually do not want to catch this exception, but fix the faulty scoped_search method call.