private InvalidPageZipContentException convertException(final SInvalidPageZipException e) { if (e instanceof SInvalidPageZipMissingPropertiesException) { return new InvalidPageZipMissingPropertiesException(); } if (e instanceof SInvalidPageZipMissingAPropertyException) { return new InvalidPageZipMissingAPropertyException(((SInvalidPageZipMissingAPropertyException) e).getFields()); } if (e instanceof SInvalidPageZipInconsistentException) { return new InvalidPageZipInconsistentException(e.getMessage(), e); } if (e instanceof SInvalidPageZipMissingIndexException) { return new InvalidPageZipMissingIndexException(); } return new InvalidPageZipContentException(e.getMessage(), e); }
private InvalidPageZipContentException convertException(final SInvalidPageZipException e) { if (e instanceof SInvalidPageZipMissingPropertiesException) { return new InvalidPageZipMissingPropertiesException(); } if (e instanceof SInvalidPageZipMissingAPropertyException) { return new InvalidPageZipMissingAPropertyException(((SInvalidPageZipMissingAPropertyException) e).getFields()); } if (e instanceof SInvalidPageZipInconsistentException) { return new InvalidPageZipInconsistentException(e.getMessage(), e); } if (e instanceof SInvalidPageZipMissingIndexException) { return new InvalidPageZipMissingIndexException(); } return new InvalidPageZipContentException(e.getMessage(), e); }
public Properties getPageProperties(final byte[] content, final boolean checkIfItAlreadyExists) throws InvalidPageTokenException, AlreadyExistsException, InvalidPageZipMissingPropertiesException, InvalidPageZipMissingIndexException, InvalidPageZipInconsistentException, InvalidPageZipMissingAPropertyException { try { return getProperties(content, checkIfItAlreadyExists, pageService); } catch (final SInvalidPageTokenException e) { throw new InvalidPageTokenException(e.getMessage()); } catch (final SBonitaReadException e) { throw new RetrieveException(e); } catch (final SInvalidPageZipMissingAPropertyException e) { throw new InvalidPageZipMissingAPropertyException(e.getFields()); } catch (final SInvalidPageZipInconsistentException e) { throw new InvalidPageZipInconsistentException(e.getMessage(), e); } catch (final SInvalidPageZipMissingIndexException e) { throw new InvalidPageZipMissingIndexException(); } catch (final SInvalidPageZipMissingPropertiesException e) { throw new InvalidPageZipMissingPropertiesException(); } }
public Properties getPageProperties(final byte[] content, final boolean checkIfItAlreadyExists) throws InvalidPageTokenException, AlreadyExistsException, InvalidPageZipMissingPropertiesException, InvalidPageZipMissingIndexException, InvalidPageZipInconsistentException, InvalidPageZipMissingAPropertyException { try { return getProperties(content, checkIfItAlreadyExists, pageService); } catch (final SInvalidPageTokenException e) { throw new InvalidPageTokenException(e.getMessage()); } catch (final SBonitaReadException e) { throw new RetrieveException(e); } catch (final SInvalidPageZipMissingAPropertyException e) { throw new InvalidPageZipMissingAPropertyException(e.getFields()); } catch (final SInvalidPageZipInconsistentException e) { throw new InvalidPageZipInconsistentException(e.getMessage(), e); } catch (final SInvalidPageZipMissingIndexException e) { throw new InvalidPageZipMissingIndexException(); } catch (final SInvalidPageZipMissingPropertiesException e) { throw new InvalidPageZipMissingPropertiesException(); } }