Is your feature request related to a problem? Please describe.
The package often throws exception which is very good for error handling and debugging. But catching or handling those exceptions are kind of problematic. Since the package only throws \Exception, it's hard to catch them by their specific name as all exceptions extend this base Exception class.
So it would be good if those exceptions were custom made.
Describe the solution you'd like
Create and throw custom exception classes that extend the base \Exception class. For example, EloquentFilterException etc. So, one can simply do this:
Is your feature request related to a problem? Please describe. The package often throws exception which is very good for error handling and debugging. But catching or handling those exceptions are kind of problematic. Since the package only throws
\Exception
, it's hard to catch them by their specific name as all exceptions extend this baseException
class. So it would be good if those exceptions were custom made.Describe the solution you'd like Create and throw custom exception classes that extend the base
\Exception
class. For example,EloquentFilterException
etc. So, one can simply do this:Thanks.
Describe alternatives you've considered
Additional context