throwExceptionOnInit = true; } public function initRequestsAndTokenAuth() { if ($this->throwExceptionOnInit) { throw new Exception('Init requests and token auth exception', 493); } parent::initRequestsAndTokenAuth(); } }