public function __construct($errorCode = null, $reason = null, $invalidInput = null) { parent::__construct("Google Apps error received: {$errorCode} ({$reason})"); $this->_errorCode = $errorCode; $this->_reason = $reason; $this->_invalidInput = $invalidInput; }