Spring Framework InvalidMimeTypeException - 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 InvalidMimeTypeException class.

This code example shows how to use the following methods:getMimeType, getMessage
 
	/** 
	 * Constructor that allows wrapping {@link InvalidMimeTypeException}. 
	 */ 
	InvalidMediaTypeException(InvalidMimeTypeException ex) {
		super(ex.getMessage(), ex);
		this.mediaType = ex.getMimeType();
	} 
 
 
	/** 
	 * Return the offending media type. 
	 */ 
	public String getMediaType() {
		return this.mediaType;
	} 
 
} 
7
CodeRank
See Code Examples for Spring Framework InvalidMimeTypeException Methods: