collectRequestExceptionMetrics(tags, e.getClass().getSimpleName()); log.error(e.getMessage(), e); throw new MetacatPreconditionFailedException( String.format("%s.%s", e.getMessage(), e.getCause() == null ? "" : e.getCause().getMessage())); } catch (ConnectorException e) {
throw new NoSuchObjectException(e.getMessage()); } catch (MetacatPreconditionFailedException e) { log.error(e.getMessage(), e); throw new InvalidObjectException(e.getMessage()); } catch (TException e) { log.error(e.getMessage(), e);
throw new NoSuchObjectException(e.getMessage()); } catch (MetacatPreconditionFailedException e) { log.error(e.getMessage(), e); throw new InvalidObjectException(e.getMessage()); } catch (TException e) { log.error(e.getMessage(), e);
return new MetacatAlreadyExistsException(message); case 412: // PRECONDITION_FAILED return new MetacatPreconditionFailedException(message); case 429: return new MetacatTooManyRequestsException(message);