/** * @throws ProblemaAcessoDadosException */ public function excluir(ImagemOS $imagemOS){ try{ parent::delete($imagemOS); } catch (\Exception $ex){ $msgLogger = self::MSG_PROBLEMA_EXCLUIR . " - " . $ex->getMessage(); FacilLogger::getLogger()->error($msgLogger); throw new ProblemaAcessoDadosException(self::MSG_PROBLEMA_EXCLUIR); } }