This interface can also be used to register a custom error handler.
| Modifier and Type | Field and Description |
|---|---|
| public static final Object | CANNOT_HANDLE
Special object to indicate that a custom converter rule or error handler cannot handle the conversion. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: The conversion result orCANNOT_HANDLE to indicate that
the convert function cannot handle this conversion. In this case
the next matching rule or parent converter will be given a
opportunity to convert.The object to be converted. This object will never be
obj, Type null as the convert function will not be invoked for
null values.The target type. targetType)Convert the object into the target type. |
| CANNOT_HANDLE | back to summary |
|---|---|
| public static final Object CANNOT_HANDLE Special object to indicate that a custom converter rule or error handler cannot handle the conversion. | |
| apply | back to summary |
|---|---|
| public Object apply(Object obj, Type targetType) throws Exception Convert the object into the target type.
| |