public function throwException($message, $method = null, $line = null)
    {
        $this->logException($message, $method, $line);

        $e = new \SwaggerValidator\Exception($message);

        $e->setFile($method);
        $e->setLine($line);
        $e->setContext($this);

        throw $e;
    }