No need of type or type_name for this exception

If anyone gets this exception, then the problem is in
the user's code & it needs to be fixed.