collectRequestExceptionMetrics(tags, e.getClass().getSimpleName()); log.error(e.getMessage(), e); throw new MetacatAlreadyExistsException(e.getMessage()); } catch (NotFoundException | MetacatNotFoundException e) { collectRequestExceptionMetrics(tags, e.getClass().getSimpleName());
return supplier.get(); } catch (MetacatAlreadyExistsException e) { log.error(e.getMessage(), e); throw new AlreadyExistsException(e.getMessage()); } catch (MetacatNotFoundException e) { log.error(e.getMessage(), e);
return supplier.get(); } catch (MetacatAlreadyExistsException e) { log.error(e.getMessage(), e); throw new AlreadyExistsException(e.getMessage()); } catch (MetacatNotFoundException e) { log.error(e.getMessage(), e);
return new MetacatNotFoundException(message); case 409: //CONFLICT return new MetacatAlreadyExistsException(message); case 412: // PRECONDITION_FAILED return new MetacatPreconditionFailedException(message);