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

This code example shows how to use the following methods:
            return ((EmailAddress) source).getEmail();
        } 
        if (source instanceof String) {
            return new EmailAddress((String)source);
        } 
        throw new ConversionFailedException(sourceType,targetType,source,null);
    } 
} 
5
CodeRank
This code example shows how to use the following methods:
		public URL convert(String source) {
 
			try { 
				return source == null ? null : new URL(source);
			} catch (MalformedURLException e) {
				throw new ConversionFailedException(SOURCE, TARGET, source, e);
			} 
		} 
	} 
 
	@ReadingConverter 
	public static enum DBObjectToStringConverter implements Converter<DBObject, String> {
 
		INSTANCE;
 
		@Override 
		public String convert(DBObject source) {
			return source == null ? null : source.toString();
		} 
	} 
3
CodeRank