Error reports that Illuminate ExceptionHandler is not instantiable

While porting a package to Slim, I tried to select from a table which didn’t exist. While I agree that this should cause an error, the actual error reported by my error handler is:

Target [Illuminate\Contracts\Debug\ExceptionHandler] is not instantiable.

I’ve googled around and found this: but the issue seems entirely Laravel specific.

Does anybody know what could be causing this and how to fix it?

Did you manage to find a workaround? And are you using MySQL 5.7 by any chance?

I was unable to find a workaround and for now sort of abandoned the issue; I’ll revisit it when I have more time.

I’m using MariaDB 10.1 (which is basically a MySql clone) … but the MySql version used shouldn’t matter for this.