Home
last modified time | relevance | path

Searched refs:MyException (Results 1 – 18 of 18) sorted by relevance

/external/catch2/examples/
D207-Rpt-TeamCityReporter.cpp77 struct MyException: public std::runtime_error struct
79 MyException( char const * text ) in MyException() function
82 ~MyException() override;
86 MyException::~MyException() = default;
114 CHECK_THROWS_MATCHES( throw MyException("hello"), MyException, MyExceptionMatcher("world") );
/external/mockito/src/test/java/org/mockito/internal/stubbing/
DInvocationContainerImplStubbingTest.java70 invocationContainerImpl.addAnswer(new ThrowsException(new MyException()), null); in should_get_results_for_methods()
77 } catch (MyException e) {} in should_get_results_for_methods()
87 invocationContainerImplStubOnly.addAnswer(new ThrowsException(new MyException()), null); in should_get_results_for_methods_stub_only()
94 } catch (MyException e) {} in should_get_results_for_methods_stub_only()
106 class MyException extends RuntimeException {} class in InvocationContainerImplStubbingTest
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DAbstractSequentialIteratorTest.java82 } catch (MyException expected) { in testBroken()
87 } catch (MyException expected) { in testBroken()
113 throw new MyException();
118 private static class MyException extends RuntimeException {}
/external/guava/guava-tests/test/com/google/common/collect/
DAbstractSequentialIteratorTest.java95 } catch (MyException expected) { in testBroken()
100 } catch (MyException expected) { in testBroken()
126 throw new MyException();
131 private static class MyException extends RuntimeException {}
/external/python/cpython3/Lib/test/
Dtest_exceptions.py437 class MyException(Exception): class
440 e = MyException().with_traceback(tb)
441 self.assertIsInstance(e, MyException)
478 class MyException(OSError): class
481 e = MyException()
549 class MyException(Exception): class
558 raise MyException(obj)
565 except MyException as e:
576 except MyException:
631 except MyException:
[all …]
Dtest_raise.py123 class MyException(Exception): class
128 raise MyException
136 class MyException(Exception): class
141 raise MyException
198 class MyException(Exception): class
203 raise IndexError from MyException
Dtest_fileio.py558 class MyException(Exception): pass class
562 raise MyException("blocked setting name")
565 self.assertRaises(MyException, MyFileIO, fd)
Dtest_coroutines.py2050 class MyException(Exception): class
2069 raise MyException
2076 except MyException:
Dtest_descr.py2010 class MyException(Exception): class
2014 raise MyException
2038 self.assertRaises(MyException, runner, X())
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCallablesTest.java60 class MyException extends Exception {} in testRenaming_exceptionalReturn() class
64 throw new MyException(); in testRenaming_exceptionalReturn()
70 } catch (MyException expected) {} in testRenaming_exceptionalReturn()
DFuturesTest.java160 private static class MyException extends Exception {} class in FuturesTest
163 CheckedFuture<String, MyException> future = Futures.immediateCheckedFuture( in testImmediateCheckedFuture()
172 CheckedFuture<String, MyException> future1 = Futures.immediateCheckedFuture( in testMultipleImmediateCheckedFutures()
174 CheckedFuture<String, MyException> future2 = Futures.immediateCheckedFuture( in testMultipleImmediateCheckedFutures()
185 MyException exception = new MyException(); in testImmediateFailedCheckedFuture()
186 CheckedFuture<String, MyException> future = in testImmediateFailedCheckedFuture()
200 } catch (MyException expected) { in testImmediateFailedCheckedFuture()
1026 Futures.allAsList(immediateFailedFuture(new MyException())).get();
1029 assertTrue(e.getCause() instanceof MyException);
1057 Futures.allAsList(immediateFailedFuture(new MyException()),
[all …]
/external/google-breakpad/src/testing/test/
Dgmock-more-actions_test.cc602 class MyException {}; class
605 const Action<double(char ch)> a = Throw(MyException()); in TEST()
606 EXPECT_THROW(a.Perform(make_tuple('0')), MyException); in TEST()
610 const Action<double()> a = Throw(MyException()); in TEST()
611 EXPECT_THROW(a.Perform(make_tuple()), MyException); in TEST()
/external/googletest/googlemock/test/
Dgmock-more-actions_test.cc596 class MyException {}; class
599 const Action<double(char ch)> a = Throw(MyException()); in TEST()
600 EXPECT_THROW(a.Perform(std::make_tuple('0')), MyException); in TEST()
604 const Action<double()> a = Throw(MyException()); in TEST()
605 EXPECT_THROW(a.Perform(std::make_tuple()), MyException); in TEST()
/external/python/cpython2/Lib/test/
Dtest_exceptions.py452 class MyException(Exception): class
459 except MyException, e:
480 class MyException(Exception): class
485 raise MyException
Dtest_fileio.py491 class MyException(Exception): pass class
495 raise MyException("blocked setting name")
498 self.assertRaises(MyException, MyFileIO, fd)
Dtest_descr.py1880 class MyException(Exception): class
1884 raise MyException
1910 except MyException:
/external/python/cpython3/Lib/unittest/test/
Dtest_case.py84 def runTest(self): raise MyException()
105 def runTest(self): raise MyException()
116 def runTest(self): raise MyException()
1822 class MyException(Exception): class
1826 MyException.ninstance += 1
1830 MyException.ninstance -= 1
1834 raise MyException()
1838 raise MyException()
1843 self.assertEqual(MyException.ninstance, 0)
/external/lzma/CPP/7zip/Bundles/Alone7z/
DAlone.dsp313 SOURCE=..\..\..\Common\MyException.h