Home
last modified time | relevance | path

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

12345678910>>...44

/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 )
1489 Current_Ratio( TT_ExecContext exc ) in Current_Ratio() argument
1491 if ( !exc->tt_metrics.ratio ) in Current_Ratio()
1493 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/python/cpython3/Python/
Dcodecs.c661 static void wrong_exception_type(PyObject *exc) in wrong_exception_type() argument
665 exc->ob_type->tp_name); in wrong_exception_type()
668 PyObject *PyCodec_StrictErrors(PyObject *exc) in PyCodec_StrictErrors() argument
670 if (PyExceptionInstance_Check(exc)) in PyCodec_StrictErrors()
671 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors()
678 PyObject *PyCodec_IgnoreErrors(PyObject *exc) in PyCodec_IgnoreErrors() argument
682 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
683 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
686 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
687 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
[all …]
Derrors.c184 PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc) in PyErr_GivenExceptionMatches() argument
186 if (err == NULL || exc == NULL) { in PyErr_GivenExceptionMatches()
190 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches()
192 n = PyTuple_Size(exc); in PyErr_GivenExceptionMatches()
196 err, PyTuple_GET_ITEM(exc, i))) in PyErr_GivenExceptionMatches()
207 if (PyExceptionClass_Check(err) && PyExceptionClass_Check(exc)) { in PyErr_GivenExceptionMatches()
208 return PyType_IsSubtype((PyTypeObject *)err, (PyTypeObject *)exc); in PyErr_GivenExceptionMatches()
211 return err == exc; in PyErr_GivenExceptionMatches()
216 PyErr_ExceptionMatches(PyObject *exc) in PyErr_ExceptionMatches() argument
218 return PyErr_GivenExceptionMatches(PyErr_Occurred(), exc); in PyErr_ExceptionMatches()
[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 …]
/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.py169 except Exception as exc:
170 raise RuntimeError('issue29692:Chained') from exc
384 exc = None variable in mycontext
391 def __exit__(self, *exc): argument
392 self.exc = exc
411 self.assertEqual(context.exc, (None, None, None))
420 self.assertIsNotNone(context.exc)
421 self.assertIs(context.exc[0], NameError)
427 self.assertIsNotNone(context.exc)
428 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/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/apitools/apitools/base/py/
Dhttp_wrapper.py260 if isinstance(retry_args.exc, (http_client.BadStatusLine,
264 type(retry_args.exc).__name__, retry_args.exc)
265 elif isinstance(retry_args.exc, socket.error):
266 logging.debug('Caught socket error, retrying: %s', retry_args.exc)
267 elif isinstance(retry_args.exc, socket.gaierror):
269 'Caught socket address error, retrying: %s', retry_args.exc)
270 elif isinstance(retry_args.exc, socket.timeout):
272 'Caught socket timeout error, retrying: %s', retry_args.exc)
273 elif isinstance(retry_args.exc, httplib2.ServerNotFoundError):
275 'Caught server not found error, retrying: %s', retry_args.exc)
[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/python/cpython3/Lib/asyncio/
Dselector_events.py164 except OSError as exc:
166 if exc.errno in (errno.EMFILE, errno.ENFILE,
173 'exception': exc,
216 except Exception as exc:
221 'exception': exc,
370 except Exception as exc:
371 fut.set_exception(exc)
404 except Exception as exc:
405 fut.set_exception(exc)
437 except Exception as exc:
[all …]
/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/cpython2/Doc/c-api/
Dexceptions.rst76 .. c:function:: int PyErr_ExceptionMatches(PyObject *exc)
78 Equivalent to ``PyErr_GivenExceptionMatches(PyErr_Occurred(), exc)``. This
83 .. c:function:: int PyErr_GivenExceptionMatches(PyObject *given, PyObject *exc)
85 Return true if the *given* exception matches the exception in *exc*. If
86 *exc* is a class object, this also returns true when *given* is an instance
87 of a subclass. If *exc* is a tuple, all exceptions in the tuple (and
91 .. c:function:: void PyErr_NormalizeException(PyObject**exc, PyObject**val, PyObject**tb)
94 can be "unnormalized", meaning that ``*exc`` is a class object but ``*val`` is
199 a third parameter. In the case of exceptions such as :exc:`IOError` and
200 :exc:`OSError`, this is used to define the :attr:`filename` attribute of the
[all …]
/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/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()

12345678910>>...44