Throw exception if unsupported type