public function hash(\Throwable $exception): string
    {
        $hash = '';
        $trace = $exception->getTrace();
        $trace[] = [
            'file' => $exception->getFile(),
            'line' => $exception->getLine()
        ];

        foreach ($trace as $place) {
            if (isset($place['file'], $place['line']) && $place['file'] && $place['line'] > 0 && strpos($place['file'], $this->cacheDirPrefix) === false) {
                $hash .= $place['file'] . ':' . $place['line'] . "\n";
            }
        }

        $hash = sha1($hash);
        return $hash;
    }