Home
last modified time | relevance | path

Searched refs:exc (Results 1 – 25 of 1124) sorted by relevance

12345678910>>...45

/external/freetype/src/truetype/
Dttinterp.c53 ( ((TT_Driver)FT_FACE_DRIVER( exc->face ))->interpreter_version == \
58 ( ((TT_Driver)FT_FACE_DRIVER( exc->face ))->interpreter_version == \
64 ( ((TT_Driver)FT_FACE_DRIVER( exc->face ))->interpreter_version == \
69 exc->func_project( exc, \
74 exc->func_dualproj( exc, \
79 exc->func_project( exc, (v)->x, (v)->y )
82 exc->func_dualproj( exc, (v)->x, (v)->y )
1513 Current_Ratio( TT_ExecContext exc ) in Current_Ratio() argument
1515 if ( !exc->tt_metrics.ratio ) in Current_Ratio()
1517 if ( exc->GS.projVector.y == 0 ) in Current_Ratio()
[all …]
/external/fdlibm/
Dk_standard.c84 struct exception exc; local
95 exc.arg1 = x;
96 exc.arg2 = y;
100 exc.type = DOMAIN;
101 exc.name = "acos";
102 exc.retval = zero;
105 else if (!ieee_matherr(&exc)) {
114 exc.type = DOMAIN;
115 exc.name = "asin";
116 exc.retval = zero;
[all …]
/external/python/cpython2/Lib/test/
Dtest_pep352.py73 exc = getattr(__builtin__, exc_name)
81 self.assertTrue(issubclass(exc, superclasses[-1][1]),
82 "%s is not a subclass of %s" % (exc.__name__,
85 self.verify_instance_interface(exc())
90 last_exc = exc
108 exc = Exception(arg)
109 results = ([len(exc.args), 1], [exc.args[0], arg], [exc.message, arg],
110 [str(exc), str(arg)], [unicode(exc), unicode(arg)],
111 [repr(exc), exc.__class__.__name__ + repr(exc.args)],
112 [exc[0], arg])
[all …]
Dtest_codeccallbacks.py10 def handle(self, exc): argument
14 realpos = len(exc.object) + realpos
17 if realpos <= exc.start:
18 self.pos = len(exc.object)
102 def xmlcharnamereplace(exc): argument
103 if not isinstance(exc, UnicodeEncodeError):
104 raise TypeError("don't know how to handle %r" % exc)
106 for c in exc.object[exc.start:exc.end]:
111 return (u"".join(l), exc.end)
133 def uninamereplace(exc): argument
[all …]
/external/antlr/runtime/Python/tests/
Dt012lexerXML.py71 except antlr3.NoViableAltException, exc:
72 assert exc.unexpectedType == '>', repr(exc.unexpectedType)
73 assert exc.charPositionInLine == 11, repr(exc.charPositionInLine)
74 assert exc.line == 2, repr(exc.line)
95 except antlr3.MismatchedSetException, exc:
96 assert exc.unexpectedType == 't', repr(exc.unexpectedType)
97 assert exc.charPositionInLine == 2, repr(exc.charPositionInLine)
98 assert exc.line == 1, repr(exc.line)
119 except antlr3.NoViableAltException, exc:
120 assert exc.unexpectedType == 'a', repr(exc.unexpectedType)
[all …]
Dt006lexer.py53 except antlr3.MismatchedTokenException, exc:
54 assert exc.expecting == 'f', repr(exc.expecting)
55 assert exc.unexpectedType == '2', repr(exc.unexpectedType)
56 assert exc.charPositionInLine == 10, repr(exc.charPositionInLine)
57 assert exc.line == 1, repr(exc.line)
/external/python/cpython3/Python/
Dcodecs.c665 static void wrong_exception_type(PyObject *exc) in wrong_exception_type() argument
669 exc->ob_type->tp_name); in wrong_exception_type()
672 PyObject *PyCodec_StrictErrors(PyObject *exc) in PyCodec_StrictErrors() argument
674 if (PyExceptionInstance_Check(exc)) in PyCodec_StrictErrors()
675 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors()
682 PyObject *PyCodec_IgnoreErrors(PyObject *exc) in PyCodec_IgnoreErrors() argument
686 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
687 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
690 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
691 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
[all …]
/external/python/cpython3/Lib/test/
Dtest_baseexception.py59 exc = getattr(builtins, exc_name)
67 self.assertTrue(issubclass(exc, superclasses[-1][1]),
68 "%s is not a subclass of %s" % (exc.__name__,
71 self.verify_instance_interface(exc())
76 last_exc = exc
92 exc = Exception(arg)
93 results = ([len(exc.args), 1], [exc.args[0], arg],
94 [str(exc), str(arg)],
95 [repr(exc), '%s(%r)' % (exc.__class__.__name__, arg)])
102 exc = Exception(*args)
[all …]
Dtest_codeccallbacks.py14 def handle(self, exc): argument
18 realpos = len(exc.object) + realpos
21 if realpos <= exc.start:
22 self.pos = len(exc.object)
87 def xmlcharnamereplace(exc): argument
88 if not isinstance(exc, UnicodeEncodeError):
89 raise TypeError("don't know how to handle %r" % exc)
91 for c in exc.object[exc.start:exc.end]:
96 return ("".join(l), exc.end)
118 def uninamereplace(exc): argument
[all …]
Dtest_contextlib.py168 except Exception as exc:
169 raise RuntimeError('issue29692:Chained') from exc
383 exc = None variable in mycontext
390 def __exit__(self, *exc): argument
391 self.exc = exc
410 self.assertEqual(context.exc, (None, None, None))
419 self.assertIsNotNone(context.exc)
420 self.assertIs(context.exc[0], NameError)
426 self.assertIsNotNone(context.exc)
427 self.assertIs(context.exc[0], NameError)
[all …]
/external/antlr/runtime/Ruby/test/functional/lexer/
Dbasic.rb76 b.should raise_error( ANTLR3::Error::NoViableAlternative ) do |exc|
77 exc.unexpected_type.should == '2'
117 should raise_error( ANTLR3::Error::NoViableAlternative ) do |exc|
118 exc.unexpected_type.should == '2'
171 should raise_error( ANTLR3::Error::MismatchedToken ) do |exc|
172 exc.expecting.should == 'f'
173 exc.unexpected_type.should == '2'
219 should raise_error( ANTLR3::Error::MismatchedToken ) do |exc|
220 exc.expecting.should == 'f'
221 exc.unexpected_type.should == '2'
[all …]
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DThreadReferenceImpl.java174 } catch (JDWPException exc) { in name()
175 throw exc.toJDIException(); in name()
195 } catch (JDWPException exc) { in suspend()
196 throw exc.toJDIException(); in suspend()
220 } catch (JDWPException exc) { in resume()
221 throw exc.toJDIException(); in resume()
235 } catch (JDWPException exc) { in suspendCount()
236 throw exc.toJDIException(); in suspendCount()
253 } catch (JDWPException exc) { in stop()
254 throw exc.toJDIException(); in stop()
[all …]
DReferenceTypeImpl.java180 } catch (JDWPException exc) { in signature()
181 throw exc.toJDIException(); in signature()
197 } catch (JDWPException exc) { in genericSignature()
198 throw exc.toJDIException(); in genericSignature()
215 } catch (JDWPException exc) { in classLoader()
216 throw exc.toJDIException(); in classLoader()
312 } catch (JDWPException exc) { in fields()
313 throw exc.toJDIException(); in fields()
331 } catch (JDWPException exc) { in fields()
332 throw exc.toJDIException(); in fields()
[all …]
/external/python/apitools/apitools/base/py/
Dhttp_wrapper.py265 if isinstance(retry_args.exc, (http_client.BadStatusLine,
269 type(retry_args.exc).__name__, retry_args.exc)
270 elif isinstance(retry_args.exc, socket.error):
271 logging.debug('Caught socket error, retrying: %s', retry_args.exc)
272 elif isinstance(retry_args.exc, socket.gaierror):
274 'Caught socket address error, retrying: %s', retry_args.exc)
275 elif isinstance(retry_args.exc, socket.timeout):
277 'Caught socket timeout error, retrying: %s', retry_args.exc)
278 elif isinstance(retry_args.exc, httplib2.ServerNotFoundError):
280 'Caught server not found error, retrying: %s', retry_args.exc)
[all …]
/external/python/cpython2/Python/
Derrors.c85 PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc) in PyErr_GivenExceptionMatches() argument
87 if (err == NULL || exc == NULL) { in PyErr_GivenExceptionMatches()
91 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches()
93 n = PyTuple_Size(exc); in PyErr_GivenExceptionMatches()
97 err, PyTuple_GET_ITEM(exc, i))) in PyErr_GivenExceptionMatches()
108 if (PyExceptionClass_Check(err) && PyExceptionClass_Check(exc)) { in PyErr_GivenExceptionMatches()
119 res = PyObject_IsSubclass(err, exc); in PyErr_GivenExceptionMatches()
130 return err == exc; in PyErr_GivenExceptionMatches()
135 PyErr_ExceptionMatches(PyObject *exc) in PyErr_ExceptionMatches() argument
137 return PyErr_GivenExceptionMatches(PyErr_Occurred(), exc); in PyErr_ExceptionMatches()
[all …]
Dcodecs.c597 static void wrong_exception_type(PyObject *exc) in wrong_exception_type() argument
599 PyObject *type = PyObject_GetAttrString(exc, "__class__"); in wrong_exception_type()
616 PyObject *PyCodec_StrictErrors(PyObject *exc) in PyCodec_StrictErrors() argument
618 if (PyExceptionInstance_Check(exc)) in PyCodec_StrictErrors()
619 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors()
627 PyObject *PyCodec_IgnoreErrors(PyObject *exc) in PyCodec_IgnoreErrors() argument
631 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
632 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
635 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
636 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
[all …]
/external/python/cpython2/Lib/
Dcontextlib.py37 except StopIteration, exc:
41 return exc is not value
107 exc = (None, None, None)
116 exc = sys.exc_info()
121 if exit(*exc):
122 exc = (None, None, None)
124 exc = sys.exc_info()
125 if exc != (None, None, None):
129 raise exc[0], exc[1], exc[2]
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_raise.py41 exc = results["exc"].clone()
42 if exc.type == token.STRING:
53 if is_tuple(exc):
54 while is_tuple(exc):
57 exc = exc.children[1].children[0].clone()
58 exc.prefix = " "
62 new = pytree.Node(syms.raise_stmt, [Name("raise"), exc])
77 e = exc
82 e = Call(exc, args)
89 [Name("raise"), Call(exc, args)],
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_raise.py41 exc = results["exc"].clone()
42 if exc.type == token.STRING:
53 if is_tuple(exc):
54 while is_tuple(exc):
57 exc = exc.children[1].children[0].clone()
58 exc.prefix = u" "
62 new = pytree.Node(syms.raise_stmt, [Name(u"raise"), exc])
77 e = exc
82 e = Call(exc, args)
89 [Name(u"raise"), Call(exc, args)],
/external/antlr/runtime/Python3/tests/
Dt012lexerXML.py67 except antlr3.NoViableAltException as exc:
68 self.assertEqual(exc.unexpectedType, '>')
69 self.assertEqual(exc.charPositionInLine, 11)
70 self.assertEqual(exc.line, 2)
90 except antlr3.MismatchedSetException as exc:
91 self.assertEqual(exc.unexpectedType, 't')
92 self.assertEqual(exc.charPositionInLine, 2)
93 self.assertEqual(exc.line, 1)
113 except antlr3.NoViableAltException as exc:
114 self.assertEqual(exc.unexpectedType, 'a')
[all …]
/external/antlr/runtime/Python3/unittests/
Dtestexceptions.py12 exc = antlr3.RecognitionException()
22 exc = antlr3.EarlyExitException()
32 exc = antlr3.FailedPredicateException()
42 exc = antlr3.MismatchedNotSetException()
52 exc = antlr3.MismatchedRangeException()
62 exc = antlr3.MismatchedSetException()
72 exc = antlr3.MismatchedTokenException()
82 exc = antlr3.MismatchedTreeNodeException()
92 exc = antlr3.NoViableAltException()
/external/antlr/runtime/Python/unittests/
Dtestexceptions.py12 exc = antlr3.RecognitionException()
22 exc = antlr3.EarlyExitException()
32 exc = antlr3.FailedPredicateException()
42 exc = antlr3.MismatchedNotSetException()
52 exc = antlr3.MismatchedRangeException()
62 exc = antlr3.MismatchedSetException()
72 exc = antlr3.MismatchedTokenException()
82 exc = antlr3.MismatchedTreeNodeException()
92 exc = antlr3.NoViableAltException()
/external/libunwind_llvm/src/
DUnwind-seh.cpp54 static void seh_exc_cleanup(_Unwind_Reason_Code urc, _Unwind_Exception *exc) { in seh_exc_cleanup() argument
56 if (exc->exception_class != kSEHExceptionClass) in seh_exc_cleanup()
58 free(exc); in seh_exc_cleanup()
73 _Unwind_Exception *exc; in _GCC_specific_handler() local
103 exc = (_Unwind_Exception *)ms_exc->ExceptionInformation[0]; in _GCC_specific_handler()
110 exc = (_Unwind_Exception *)malloc(sizeof(_Unwind_Exception)); in _GCC_specific_handler()
111 exc->exception_class = kSEHExceptionClass; in _GCC_specific_handler()
112 exc->exception_cleanup = seh_exc_cleanup; in _GCC_specific_handler()
113 memset(exc->private_, 0, sizeof(exc->private_)); in _GCC_specific_handler()
136 (void *)pers, action, exc->exception_class, in _GCC_specific_handler()
[all …]
/external/python/cpython3/Lib/asyncio/
Dselector_events.py170 except OSError as exc:
172 if exc.errno in (errno.EMFILE, errno.ENFILE,
179 'exception': exc,
224 except BaseException as exc:
229 'exception': exc,
384 except BaseException as exc:
385 fut.set_exception(exc)
421 except BaseException as exc:
422 fut.set_exception(exc)
467 except BaseException as exc:
[all …]
/external/tensorflow/tensorflow/python/framework/
Derrors_test.py90 exc = errors_impl._make_specific_exception(None, None, None, error_code)
93 self.assertTrue(isinstance(exc, errors_impl.OpError))
94 self.assertTrue(errors_impl.OpError in exc.__class__.__bases__)
99 exc = errors_impl._make_specific_exception(None, None, None, 37)
103 self.assertTrue(isinstance(exc, errors_impl.OpError))
107 exc = errors_impl.error_code_from_exception_type("Unknown")
111 self.assertTrue(isinstance(exc, errors_impl.OpError))
141 exc = errors_impl._make_specific_exception(None, None, None, error_code)
143 unpickled = pickle.loads(pickle.dumps(exc))
144 self.assertEqual(exc.node_def, unpickled.node_def)
[all …]

12345678910>>...45