public static function format(\Exception $exception, $isCli = false)
    {
        if ($isCli === true) {
            return
                "+++ Untreated Exception +++" . PHP_EOL . "Message: " . $exception->getMessage() . PHP_EOL . "Location: " . $exception->getFile()
                . " on line " . $exception->getLine() . PHP_EOL . "Stack Trace: " . PHP_EOL . $exception->getTraceAsString() . PHP_EOL;
        }

        return "<html>
    <head>
      <style>
        pre { display: block;
            padding: 8.5px;
            margin: 0 0 9px;
            line-height: 18px;
            word-break: break-all;
            word-wrap: break-word;
            white-space: pre;
            white-space: pre-wrap;
            border: 1px solid #ccc;
            border: 1px solid rgba(0, 0, 0, 0.15);
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px;
            border-radius: 6px;
            color: chartreuse;
            background-color: black;
        }
      </style>
    </head>
      <h2>Untreated Exception</h2>
      <h3>Message:</h3>
      <pre>" . $exception->getMessage() . "</pre>
      <h3>Location:</h3>
      <pre>" . $exception->getFile() . " on line " . $exception->getLine() . "</pre>
      <h3>Stack Trace:</h3>
      <pre>" . $exception->getTraceAsString() . "</pre></html>";
    }