Get a converter from a ConverterProvider or null if no converter could be provided.
(Configuration configuration, T instance, Class<T> tType, Class<U> uType)
| 1726 | * no converter could be provided. |
| 1727 | */ |
| 1728 | static final <T, U> ContextConverter<T, U> converterOrFail(Configuration configuration, T instance, Class<T> tType, Class<U> uType) { |
| 1729 | ContextConverter<T, U> result = converter(configuration, instance, tType, uType); |
| 1730 | |
| 1731 | if (result == null) |
| 1732 | throw new DataTypeException("No Converter found for types " + tType.getName() + " and " + uType.getName()); |
| 1733 | |
| 1734 | return result; |
| 1735 | } |
| 1736 | |
| 1737 | /** |
| 1738 | * Get a converter from a {@link ConverterProvider}. |
no test coverage detected