public static function handle_errors()
{
set_error_handler(Method::create('\\Habari\\Error', 'error_handler'));
set_exception_handler(Method::create('\\Habari\\Error', 'exception_handler'));
register_shutdown_function(Method::create('\\Habari\\Error', 'shutdown_handler'));
}