dev_mode) { Helper::log($message, 'fsi_error'); } throw new Exception($message); } /** * @throws Exception */ private function throw_non_retryable($message, $code = 0) { if ($this->dev_mode) { Helper::log($message, 'fsi_error'); } throw new FatalErrorException($message); } /** * @throws Exception */ private function throw_retryable($message, $code = 0) { if ($this->dev_mode) { Helper::log($message, 'fsi_error'); } throw new RetryableErrorException($message); } /** * @throws Exception */ private function throw_unknown($message, $code = 0) { if ($this->dev_mode) { Helper::log($message, 'fsi_error'); } throw new UnknownErrorException($message); } }