/**
* Constructor. Do basic error checking on the resposne.
*
* @param DOMElement $element The DOM element we're encapsulating.
*/
public function __construct($element = null)
{
parent::__construct($element);
if ($this['stat'] != 'ok') {
throw new Horde_Service_Scribd_Exception($this->error['message'], $this->error['code']);
}
}