dreamworkAPI
Ctrl K
GitHub
classDocs / TypeError

TypeError

classsharedmenusource
Object → Error → TypeError

An error raised when a value does not match the type expected by an operation, function argument, or field.

Constructor

TypeError(index: integer, value: any, expected_type: string, value_name: ( string | nil ), function_name: ( string | nil )): TypeError

Fields

NameTypeDescription
indexinteger
valueany
value_namestring | nil
function_namestring | nil
expected_typestringThe type that was expected.
received_typestringThe type that was actually received.

Inherited methods

From Error 5
Generated from the dreamwork meta branch.