Home
last modified time | relevance | path

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

/external/autotest/client/common_lib/test_utils/
Dmock_demo.py7 class MyError(Exception): class
43 raise MyError("woops")
124 m3.method6.expect_call(True).and_raises(MyError("woops"))
/external/clang/test/SemaObjC/
Dobjcbridge-attribute.m6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
66 @interface MyError : NSError // expected-note 1 {{declared here}} interface
76 …(void)(MyError*)cf; // expected-warning {{'CFErrorRef2' (aka 'struct __CFErrorRef *') bridges to N…
96 …cted-warning {{'CFMyErrorRef' (aka 'struct __CFMyErrorRef *') bridges to MyError, not 'id<P1,P2,P4…
Dobjcbridge-attribute-arc.m6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
66 @interface MyError : NSError // expected-note 1 {{declared here}} interface
81 …(void)(MyError*)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka 'struct __CFErro…
84 … expected-warning {{'CFErrorRef2' (aka 'struct __CFErrorRef *') bridges to NSError, not 'MyError'}}
132 …cted-warning {{'CFMyErrorRef' (aka 'struct __CFMyErrorRef *') bridges to MyError, not 'id<P1,P2,P4…
223 …(void)(__bridge MyError*)cf; // expected-warning {{'CFErrorRef2' (aka 'struct __CFErrorRef *') bri…
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSerializingExecutorTest.java175 class MyError extends Error {} in testTaskThrowsError() class
184 throw new MyError(); in testTaskThrowsError()
DFuturesTest.java346 static class MyError extends Error {} class in FuturesTest
370 runGetIdempotencyTest(errorComposedFuture, MyError.class); in testTransformExceptionRemainsMemoized()
380 runGetIdempotencyTest(Futures.transform(errorInput, newOneTimeErrorThrower()), MyError.class); in testTransformExceptionRemainsMemoized()
381 runGetIdempotencyTest(errorComposedFuture, MyError.class); in testTransformExceptionRemainsMemoized()
419 throw new MyError(); in newOneTimeErrorThrower()
1041 Futures.allAsList(immediateFailedFuture(new MyError())).get();
1044 assertTrue(e.getCause() instanceof MyError);
1047 assertTrue(logged.get(0).getThrown() instanceof MyError);
1725 immediateFailedFuture(new MyError())).get());
1728 assertTrue(logged.get(0).getThrown() instanceof MyError);
/external/clang/test/SemaObjCXX/
Dobjcbridge-static-cast.mm6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
48 @interface MyError : NSError // expected-note 1 {{declared here}} interface
63 …tatic_cast<MyError*>(cf); // expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFError…
66 // expected-warning {{'CFErrorRef2' (aka '__CFErrorRef *') bridges to NSError, not 'MyError'}}
114 …// expected-warning {{'CFMyErrorRef' (aka '__CFMyErrorRef *') bridges to MyError, not 'id<P1,P2,P4…
Dobjcbridge-attribute.mm6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
48 @interface MyError : NSError // expected-note 1 {{declared here}} interface
63 …(void)(MyError*)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *'…
66 // expected-warning {{'CFErrorRef2' (aka '__CFErrorRef *') bridges to NSError, not 'MyError'}}
114 …// expected-warning {{'CFMyErrorRef' (aka '__CFMyErrorRef *') bridges to MyError, not 'id<P1,P2,P4…
205 …(void)(__bridge MyError*)cf; // expected-warning {{'CFErrorRef2' (aka '__CFErrorRef *') bridges to…
Dobjcbridge-attribute-arc.mm6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
48 @interface MyError : NSError // expected-note 1 {{declared here}} interface
63 …(void)(MyError*)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *'…
66 // expected-warning {{'CFErrorRef2' (aka '__CFErrorRef *') bridges to NSError, not 'MyError'}}
114 …// expected-warning {{'CFMyErrorRef' (aka '__CFMyErrorRef *') bridges to MyError, not 'id<P1,P2,P4…
/external/autotest/client/bin/
Djob_unittest.py378 class MyError(error.TestError): class
380 real_error = MyError("this is the real error message")
412 class MyError(Exception): class
414 real_error = MyError("this is the real error message")
/external/python/cpython2/Doc/tutorial/
Derrors.rst259 >>> class MyError(Exception):
266 ... raise MyError(2*2)
267 ... except MyError as e:
271 >>> raise MyError('oops!')
274 __main__.MyError: 'oops!'
/external/llvm/docs/
DProgrammersManual.rst341 class MyError : public ErrorInfo<MyError> {
343 MyError(std::string Msg) : Msg(Msg) {}
344 void log(OStream &OS) const override { OS << "MyError - " << Msg; }
350 char MyError::ID = 0; // In MyError.cpp
354 return make_error<MyError>("Error condition detected");
434 [](std::unique_ptr<MyError> M) {