I like to use the PHP Error class to return using throw like this:
throw new Error('Some problem description');
Sadly, I have to use PHP 5.4.16 on CentOS 7.5. The Error class was introduced in PHP 7.
Is there a class that I can include which emulates the behavior of the Error class from PHP 7?