Spring Framework NestedIOException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework NestedIOException class.

This code example shows how to use the following methods:
		ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
		try { 
			return objectInputStream.readObject();
		} 
		catch (ClassNotFoundException ex) {
			throw new NestedIOException("Failed to deserialize object type", ex);
		} 
	} 
 
} 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
	public URL getURL() throws IOException {
		try { 
			return VfsUtils.getURL(this.resource);
		} 
		catch (Exception ex) {
			throw new NestedIOException("Failed to obtain URL for file " + this.resource, ex);
		} 
	} 
 
	@Override 
	public URI getURI() throws IOException {
		try { 
			return VfsUtils.getURI(this.resource);
		} 
		catch (Exception ex) {
			throw new NestedIOException("Failed to obtain URI for " + this.resource, ex);
		} 
	} 
 
	@Override 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
This code example shows how to use the following methods:
		URL url = getURL();
		try { 
			return ResourceUtils.toURI(url);
		} 
		catch (URISyntaxException ex) {
			throw new NestedIOException("Invalid URI [" + url + "]", ex);
		} 
	} 
 
	/** 
	 * This implementation throws a FileNotFoundException, assuming 
	 * that the resource cannot be resolved to an absolute file path. 
	 */ 
	@Override 
	public File getFile() throws IOException {
		throw new FileNotFoundException(getDescription() + " cannot be resolved to absolute file path");
	} 
 
	/** 
	 * This implementation reads the entire InputStream to calculate the 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
			} 
			return false; 
		} 
		catch (Exception ex) { 
			throw new NestedIOException( 
					"Could not load Velocity template for URL [" + getUrl() + "]", ex); 
		} 
	} 
 
 
	/** 
	 * Process the model map by merging it with the Velocity template. 
	 * Output is directed to the servlet response. 
	 * <p>This method can be overridden if custom behavior is needed. 
	 */ 
	@Override 
	protected void renderMergedTemplateModel( 
			Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception { 
 
		exposeHelpers(model, request); 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
			SmbFile smbDir = createSmbDirectoryObject(_path);
			if (!smbDir.exists()) {
				logger.warn("Remote directory [" + _path + "] does not exist. Cannot list resources.");
				return files;
			} else if (!smbDir.isDirectory()) {
				throw new NestedIOException("Resource [" + _path + "] is not a directory. Cannot list resources.");
			} 
 
			files = smbDir.listFiles();
 
		} catch (SmbException _ex) {
			throw new NestedIOException("Failed to list resources in [" + _path + "].", _ex);
		} 
		String msg = "Successfully listed " + files.length + " resource(s) in [" + _path + "]";
		if (logger.isDebugEnabled()) {
			logger.debug(msg + ": " + Arrays.toString(files));
		} else { 
			logger.info(msg + ".");
		} 
 
3
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java