Beispiel #1
0
	/**
	 * Inserir usuário
	 * @param Usuario $usuario
	 * @throws ProblemaAcessoDadosException
	 */
	public function inserir(Usuario $usuario){
		try{
			return parent::insert($usuario);
		}catch (\Exception $ex){
			$msgLogger = self::MSG_PROBLEMA_INSERIR . FacilLogger::gerarLogException($ex);
			FacilLogger::getLogger()->error($msgLogger);
			throw new ProblemaAcessoDadosException(self::MSG_PROBLEMA_INSERIR);
		}
	}