Home
last modified time | relevance | path

Searched refs:errtext (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares_strerror.c24 const char *errtext[] = { in ares_strerror() local
52 if(code >= 0 && code < (int)(sizeof(errtext) / sizeof(*errtext))) in ares_strerror()
53 return errtext[code]; in ares_strerror()
/external/antlr/runtime/Cpp/include/
Dantlr3treeparser.inl81 typename ImplTraits::StringStreamType errtext; local
88 errtext << "-end of input-(";
92 errtext << "-unknown source-(";
97 errtext << ex->get_streamName() << "(";
102 errtext << this->get_rec()->get_state()->get_exception()->get_line() << ") ";
103 errtext << " : error " << this->get_rec()->get_state()->get_exception()->getType()
118 errtext << ", at offset "
120 errtext << ", near " << ttext;
122 ex->displayRecognitionError( errtext );
123 ImplTraits::displayRecognitionError( errtext.str() );
Dantlr3parser.inl73 typename ImplTraits::StringStreamType errtext; local
80 errtext << "-end of input-(";
84 errtext << "-unknown source-(";
89 errtext << ex->get_streamName() << "(";
94 errtext << this->get_rec()->get_state()->get_exception()->get_line() << ") ";
95 errtext << " : error " << this->get_rec()->get_state()->get_exception()->getType()
104 errtext << ", at offset , "
110 errtext << ", at <EOF>";
116 errtext << "\n near " << ( ttext.empty()
121 ex->displayRecognitionError( tokenNames, errtext );
[all …]
/external/python/cpython2/Lib/test/
Dtest_syntax.py628 def _check_error(self, code, errtext, argument
641 mo = re.search(errtext, str(err))
643 self.fail("%s did not contain '%r'" % (err, errtext,))
/external/python/cpython3/Lib/test/
Dtest_syntax.py781 def _check_error(self, code, errtext, argument
794 mo = re.search(errtext, str(err))
796 self.fail("SyntaxError did not contain %r" % (errtext,))
/external/python/cpython3/Python/
Dpythonrun.c1559 PyObject *v, *w, *errtype, *errtext; in err_input() local
1645 errtext = Py_None; in err_input()
1648 errtext = PyUnicode_DecodeUTF8(err->text, err->offset, in err_input()
1650 if (errtext != NULL) { in err_input()
1652 offset = (int)PyUnicode_GET_LENGTH(errtext); in err_input()
1654 Py_DECREF(errtext); in err_input()
1655 errtext = PyUnicode_DecodeUTF8(err->text, len, in err_input()
1661 err->lineno, offset, errtext); in err_input()
/external/python/cpython3/Parser/
Dtokenizer.c1043 PyObject *errmsg, *errtext, *args; in syntaxerror() local
1056 errtext = PyUnicode_DecodeUTF8(tok->line_start, tok->cur - tok->line_start, in syntaxerror()
1058 if (!errtext) { in syntaxerror()
1061 int offset = (int)PyUnicode_GET_LENGTH(errtext); in syntaxerror()
1064 Py_DECREF(errtext); in syntaxerror()
1065 errtext = PyUnicode_DecodeUTF8(tok->line_start, line_len, in syntaxerror()
1068 if (!errtext) { in syntaxerror()
1073 tok->filename, tok->lineno, offset, errtext); in syntaxerror()
/external/igt-gpu-tools/runner/
Dresultgen.c869 const char *errtext = "", *result = ""; in override_result_single() local
874 errtext = json_object_get_string(textobj); in override_result_single()
881 count_lines(errtext, errtext + strlen(errtext)) > 2) { in override_result_single()
/external/python/cpython3/Lib/test/support/
D__init__.py1021 def check_syntax_error(testcase, statement, errtext='', *, lineno=None, offset=None): argument
1022 with testcase.assertRaisesRegex(SyntaxError, errtext) as cm:
1032 def check_syntax_warning(testcase, statement, errtext='', *, lineno=1, offset=None): argument
1041 if errtext:
1042 testcase.assertRegex(str(warn.message), errtext)
1053 check_syntax_error(testcase, statement, errtext,
/external/python/cpython2/Lib/test/support/
D__init__.py854 def check_syntax_error(testcase, statement, errtext='', lineno=None, offset=None): argument
855 with testcase.assertRaisesRegexp(SyntaxError, errtext) as cm:
/external/python/cpython3/Doc/library/
Dtest.rst1023 .. function:: check_syntax_error(testcase, statement, errtext='', *, lineno=None, offset=None)
1026 *testcase* is the :mod:`unittest` instance for the test. *errtext* is the
1033 .. function:: check_syntax_warning(testcase, statement, errtext='', *, lineno=1, offset=None)
1038 *testcase* is the :mod:`unittest` instance for the test. *errtext* is the