@Override public Response toResponse(final FedoraInvalidNamespaceException e) { LOGGER.error("NamespaceExceptionMapper caught an exception: {}", e.getMessage()); debugException(this, e, LOGGER); return status(BAD_REQUEST).entity(e.getMessage()).type(TEXT_PLAIN_WITH_CHARSET).build(); }
throw new FedoraInvalidNamespaceException("Empty namespace in " + segment); throw new FedoraInvalidNamespaceException("Prefix " + prefix + " has not been registered", e); } catch (final RepositoryException e) { throw new RepositoryRuntimeException(e);
throw new FedoraInvalidNamespaceException("Invalid fcr namespace properties " + predicate + ".");