Searched refs:MyError (Results 1 – 5 of 5) sorted by relevance
/third_party/rust/crates/nom/examples/ |
D | custom_error.rs | 10 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/ |
D | test_asyncgen.py | 636 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/ |
D | test.js | 14 class MyError extends Error { } class 15 const myError = new MyError('Some MyError');
|
/third_party/python/Lib/test/test_asyncio/ |
D | test_selector_events.py | 459 class MyError(Exception): class 461 exc = MyError() 469 exc_info=(MyError, MOCK_ANY, MOCK_ANY))
|
/third_party/node/doc/api/ |
D | util.md | 2519 class MyError extends Error {} 2520 console.log(util.types.isNativeError(new MyError())); // true
|