You could combine both partial functions / "pattern matching"
```scala
case (TypeInfo(Class, _), JString(s)) => isoDateFormat.parseDateTime(s)
case (TypeInfo(Class, _), x) => throw new MappingException("Can't convert " + x + " to DateTime")
```