hasError()) { throw new Zend_Service_DeveloperGarden_Response_Exception( $this->getErrorMessage(), $this->getErrorCode() ); } return $this; } /** * returns the error code * * @return string|null */ public function getErrorCode() { return $this->errorCode; } /** * returns the error message * * @return string */ public function getErrorMessage() { return $this->errorMessage; } /** * returns true if the errorCode is not null and not 0000 * * @return boolean */ public function isValid() { return ($this->errorCode === null || $this->errorCode == '0000'); } /** * returns true if we have a error situation * * @return boolean */ public function hasError() { return ($this->errorCode !== null && $this->errorCode != '0000'); } }