Lines Matching refs:MP_ERROR_TEXT
190 mp_raise_msg(&mp_type_NameError, MP_ERROR_TEXT("name not defined")); in mp_load_global()
192 mp_raise_msg_varg(&mp_type_NameError, MP_ERROR_TEXT("name '%q' isn't defined"), qst); in mp_load_global()
297 mp_raise_TypeError(MP_ERROR_TEXT("can't convert to int")); in mp_unary_op()
299 mp_raise_TypeError(MP_ERROR_TEXT("unsupported type for operator")); in mp_unary_op()
304 MP_ERROR_TEXT("can't convert %s to int"), mp_obj_get_type_str(arg)); in mp_unary_op()
307 MP_ERROR_TEXT("unsupported type for %q: '%s'"), in mp_unary_op()
392 mp_raise_ValueError(MP_ERROR_TEXT("negative shift count")); in mp_binary_op()
409 mp_raise_ValueError(MP_ERROR_TEXT("negative shift count")); in mp_binary_op()
487 mp_raise_ValueError(MP_ERROR_TEXT("negative power with no float support")); in mp_binary_op()
617 mp_raise_TypeError(MP_ERROR_TEXT("unsupported type for operator")); in mp_binary_op()
620 MP_ERROR_TEXT("unsupported types for %q: '%s', '%s'"), in mp_binary_op()
625 mp_raise_msg(&mp_type_ZeroDivisionError, MP_ERROR_TEXT("divide by zero")); in mp_binary_op()
659 mp_raise_TypeError(MP_ERROR_TEXT("object not callable")); in mp_call_function_n_kw()
662 MP_ERROR_TEXT("'%s' object isn't callable"), mp_obj_get_type_str(fun_in)); in mp_call_function_n_kw()
888 mp_raise_ValueError(MP_ERROR_TEXT("wrong number of values to unpack")); in mp_unpack_sequence()
890 …mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("need more than %d values to unpack"), (int)s… in mp_unpack_sequence()
894 mp_raise_ValueError(MP_ERROR_TEXT("wrong number of values to unpack")); in mp_unpack_sequence()
896 …mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("too many values to unpack (expected %d)"), (… in mp_unpack_sequence()
955 mp_raise_ValueError(MP_ERROR_TEXT("wrong number of values to unpack")); in mp_unpack_ex()
957 …mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("need more than %d values to unpack"), (int)s… in mp_unpack_ex()
993 mp_raise_TypeError(MP_ERROR_TEXT("argument has wrong type")); in checked_fun_call()
996 … MP_ERROR_TEXT("argument should be a '%q' not a '%q'"), self->type->name, arg0_type->name); in checked_fun_call()
1124 mp_raise_msg(&mp_type_AttributeError, MP_ERROR_TEXT("no such attribute")); in mp_load_method()
1129 MP_ERROR_TEXT("type object '%q' has no attribute '%q'"), in mp_load_method()
1133 MP_ERROR_TEXT("'%s' object has no attribute '%q'"), in mp_load_method()
1168 mp_raise_msg(&mp_type_AttributeError, MP_ERROR_TEXT("no such attribute")); in mp_store_attr()
1171 MP_ERROR_TEXT("'%s' object has no attribute '%q'"), in mp_store_attr()
1213 mp_raise_TypeError(MP_ERROR_TEXT("object not iterable")); in mp_getiter()
1216 MP_ERROR_TEXT("'%s' object isn't iterable"), mp_obj_get_type_str(o_in)); in mp_getiter()
1237 mp_raise_TypeError(MP_ERROR_TEXT("object not an iterator")); in mp_iternext_allow_raise()
1240 MP_ERROR_TEXT("'%s' object isn't an iterator"), mp_obj_get_type_str(o_in)); in mp_iternext_allow_raise()
1274 mp_raise_TypeError(MP_ERROR_TEXT("object not an iterator")); in mp_iternext()
1277 MP_ERROR_TEXT("'%s' object isn't an iterator"), mp_obj_get_type_str(o_in)); in mp_iternext()
1356 …*ret_val = mp_obj_new_exception_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("generator raised StopIte… in mp_resume()
1377 …return mp_obj_new_exception_msg(&mp_type_TypeError, MP_ERROR_TEXT("exceptions must derive from Bas… in mp_make_raise_obj()
1416 mp_raise_msg_varg(&mp_type_ImportError, MP_ERROR_TEXT("can't import name %q"), name); in mp_import_from()
1517 … mp_raise_msg(&mp_type_MemoryError, MP_ERROR_TEXT("memory allocation failed, heap is locked")); in m_malloc_fail()
1521 MP_ERROR_TEXT("memory allocation failed, allocating %u bytes"), (uint)num_bytes); in m_malloc_fail()