throw new GridGgfsDirectoryNotEmptyException("Failed to remove directory (directory is not empty " + "and recursive flag is not set)");
throw new GridGgfsDirectoryNotEmptyException("Failed to remove directory (directory is not empty " + "and recursive flag is not set)");
/** * @param errCode Error code. * @param err Error. * @throws GridException Based on error code. */ public static void throwError(Integer errCode, String err) throws GridException { assert err != null; assert errCode != -1; if (errCode == ERR_FILE_NOT_FOUND) throw new GridGgfsFileNotFoundException(err); else if (errCode == ERR_PATH_ALREADY_EXISTS) throw new GridGgfsPathAlreadyExistsException(err); else if (errCode == ERR_DIRECTORY_NOT_EMPTY) throw new GridGgfsDirectoryNotEmptyException(err); else if (errCode == ERR_PARENT_NOT_DIRECTORY) throw new GridGgfsParentNotDirectoryException(err); else if (errCode == ERR_INVALID_HDFS_VERSION) throw new GridGgfsInvalidHdfsVersionException(err); else if (errCode == ERR_CORRUPTED_FILE) throw new GridGgfsCorruptedFileException(err); else if (errCode == ERR_GGFS_GENERIC) throw new GridGgfsException(err); throw new GridException(err); }
/** * @param errCode Error code. * @param err Error. * @throws GridException Based on error code. */ public static void throwError(Integer errCode, String err) throws GridException { assert err != null; assert errCode != -1; if (errCode == ERR_FILE_NOT_FOUND) throw new GridGgfsFileNotFoundException(err); else if (errCode == ERR_PATH_ALREADY_EXISTS) throw new GridGgfsPathAlreadyExistsException(err); else if (errCode == ERR_DIRECTORY_NOT_EMPTY) throw new GridGgfsDirectoryNotEmptyException(err); else if (errCode == ERR_PARENT_NOT_DIRECTORY) throw new GridGgfsParentNotDirectoryException(err); else if (errCode == ERR_INVALID_HDFS_VERSION) throw new GridGgfsInvalidHdfsVersionException(err); else if (errCode == ERR_CORRUPTED_FILE) throw new GridGgfsCorruptedFileException(err); else if (errCode == ERR_GGFS_GENERIC) throw new GridGgfsException(err); throw new GridException(err); }
throw new GridGgfsDirectoryNotEmptyException("Failed to remove file (directory is not empty)" + " [fileId=" + fileId + ", listing=" + listing + ']');
throw new GridGgfsDirectoryNotEmptyException("Failed to remove file (directory is not empty)" + " [fileId=" + fileId + ", listing=" + listing + ']');