catch all errors on getDataType