TypeError

About

The TypeError class is a subclass of Error that is thrown when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type.

A TypeError may be thrown when:

  • An operand or parameter passed to a function is incompatible with the type expected by that operator or function.

  • When attempting to modify a value that cannot be changed.

  • When attempting to use a value in an inappropriate way.

Last Updated:
Contributors: Aparajita