Because `__toString()` magic method is not allowed to throw exceptions, the only thing I can do is turn these exception into errors instead:

    } catch (\Exception $e) {
        trigger_error("{$e}");
    }