Tale\Jade\Parser::throwException PHP Method

throwException() protected method

If a related token is passed, it will also append the location in the input of that token
protected throwException ( string $message, array $relatedToken = null )
$message string a meaningful error-message
$relatedToken array the token related to this error
    protected function throwException($message, array $relatedToken = null)
    {
        if ($relatedToken) {
            $message .= "\n(" . $relatedToken['type'] . ' at ' . $relatedToken['line'] . ':' . $relatedToken['offset'] . ')';
        }
        throw new Exception("Failed to parse Jade: {$message}");
    }