public function addCompanyService() { try { return parent::addCompanyServiceDraft(); } catch (Exception $ex) { SS_Log::log($ex, SS_Log::ERR); return $this->serverError(); } }
public function addCompanyService() { try { return parent::addCompanyServiceDraft(); } catch (NonSupportedApiVersion $ex1) { SS_Log::log($ex1, SS_Log::ERR); return $this->validationError($ex1->getMessage()); } catch (NonSupportedComponent $ex2) { SS_Log::log($ex2, SS_Log::ERR); return $this->validationError($ex2->getMessage()); } catch (Exception $ex) { SS_Log::log($ex, SS_Log::ERR); return $this->serverError(); } }