public static StorageException updateException(Path path, String message) { return new StorageException(message, Event.UPDATE, path); }
@Override public Resource<T> createResource(Path path, T content) { throw StorageException.createException(path, "Empty: cannot create resource: " + path); }
@Override public boolean deleteResource(Path path) { throw StorageException.deleteException(path, "Empty: no resource for path: " + path); }
} catch (StorageException e) { throw new ConfigurationException("Failed to read the ssh private key for " + "storage path: " + storagePath + ": " + e.getMessage()); } catch (IOException e) { throw new ConfigurationException("Failed to read the ssh private key for " +
@Override public Set<Resource<T>> listDirectorySubdirs(Path path) { throw StorageException.listException(path, "Empty: no resource for path: " + path); }
@Override public Resource<T> getPath(Path path) { throw StorageException.readException(path, "Empty: no resource or directory for path: " + path); }
@Override public Resource<T> updateResource(Path path, T content) { throw StorageException.updateException(path, "Empty: no resource for path: " + path); } }
} catch (StorageException e) { throw new ConfigurationException("Failed to read the vault key for " + "storage path: " + storagePath + ": " + e.getMessage()); } catch (IOException e) { throw new ConfigurationException("Failed to read the vault key for " +
@Override public Set<Resource<T>> listDirectory(Path path) { throw StorageException.listException(path, "Empty: no resource for path: " + path); }
@Override public Resource<T> getResource(Path path) { throw StorageException.readException(path, "Empty: no resource for path: " + path); }
} catch (StorageException e) { throw new ConfigurationException("Failed to read the winrm password for " + "storage path: " + storagePath + ": " + e.getMessage()); } catch (IOException e) { throw new ConfigurationException("Failed to read the winrm password for " +
public static StorageException readException(Path path, String message, Throwable cause) { return new StorageException(message, cause, Event.READ, path); }
@Override public Set<Resource<T>> listDirectoryResources(Path path) { throw StorageException.listException(path, "Empty: no resource for path: " + path); }
} catch (StorageException e) { throw new ConfigurationException("Failed to read the winrm password for " + "storage path: " + storagePath + ": " + e.getMessage()); } catch (IOException e) { throw new ConfigurationException("Failed to read the winrm password for " +
public static StorageException listException(Path path, String message) { return new StorageException(message, Event.LIST, path); }
} catch (StorageException e) { throw new ConfigurationException("Failed to read the become password for " + "storage path: " + storagePath + ": " + e.getMessage()); } catch (IOException e) { throw new ConfigurationException("Failed to read the become password for " +
public static StorageException updateException(Path path, String message, Throwable cause) { return new StorageException(message, cause, Event.UPDATE, path); }
} catch (StorageException e) { throw new ConfigurationException("Failed to read the shh password for " + "storage path: " + storagePath + ": " + e.getMessage()); } catch (IOException e) { throw new ConfigurationException("Failed to read the ssh password for " +
public static StorageException deleteException(Path path, String message) { return new StorageException(message, Event.DELETE, path); }
public static StorageException listException(Path path, String message, Throwable cause) { return new StorageException(message, cause, Event.LIST, path); }