Home
last modified time | relevance | path

Searched refs:MyError (Results 1 – 5 of 5) sorted by relevance

/third_party/rust/crates/nom/examples/
Dcustom_error.rs10 MyError, enumerator
25 Err(Error(CustomError::MyError)) in parse()
40 Error(e) => assert_eq!(e, CustomError::MyError), in it_works()
/third_party/python/Lib/test/
Dtest_asyncgen.py636 class MyError(Exception): class
642 except MyError:
651 self.assertEqual(g.throw(MyError, MyError(), None), 2)
664 self.assertEqual(g.throw(MyError, MyError(), None), 2)
665 with self.assertRaises(MyError):
666 g.throw(MyError, MyError(), None)
685 except MyError:
693 self.assertEqual(g.throw(MyError, MyError(), None), 20)
694 with self.assertRaisesRegex(MyError, 'val'):
695 g.throw(MyError, MyError('val'), None)
[all …]
/third_party/node/test/js-native-api/test_error/
Dtest.js14 class MyError extends Error { } class
15 const myError = new MyError('Some MyError');
/third_party/python/Lib/test/test_asyncio/
Dtest_selector_events.py459 class MyError(Exception): class
461 exc = MyError()
469 exc_info=(MyError, MOCK_ANY, MOCK_ANY))
/third_party/node/doc/api/
Dutil.md2519 class MyError extends Error {}
2520 console.log(util.types.isNativeError(new MyError())); // true