/** * {@inheritdoc} */ public function save(AttributeSetInterface $attributeSet) { try { $this->attributeSetResource->save($attributeSet); } catch (\Exception $exception) { throw new CouldNotSaveException(__('There was an error saving attribute set.')); } return $attributeSet; }