public function getError()
    {
        if($this->isError() || $this->isDeclined())
        {
            return new PaynetException($this->getErrorMessage(), $this->getErrorCode());
        }
        else
        {
            throw new RuntimeException('Response has no error');
        }
    }