Throw exception if unsupported types