Searched refs:MyError (Results 1 - 16 of 16) sorted by relevance

/external/v8/test/mjsunit/
H A Dhas-own-property-evaluation-order.js5 function MyError() {} function
10 throw new MyError();
13 }, MyError);
H A Derror-constructors.js93 function MyError() {} class
94 MyError.prototype = new Error;
96 SyntaxError, ReferenceError, TypeError, MyError];
/external/v8/test/mjsunit/harmony/
H A Dregexp-change-exec.js5 class MyError extends Error { }
6 RegExp.prototype.exec = () => { throw new MyError() };
7 assertThrows(() => "foo".match(/bar/), MyError);
H A Ddo-expressions.js8 function MyError() {} function
32 throw new MyError();
35 }, MyError);
39 throw new MyError();
42 }, MyError);
180 function thrower() { throw new MyError(); }
185 assertInstanceof(fn3(), MyError);
187 function fn4(exception = do { throw new MyError() }) {}
193 assertInstanceof(e, MyError);
H A Dasync-await-basic.js161 class MyError extends Error {};
164 async function asyncDeclThrower(e) { throw new MyError(e); }
165 assertThrowsAsync(() => asyncDeclThrower("boom!"), MyError, "boom!");
167 () => (async function(e) { throw new MyError(e); })("boom!!!"),
168 MyError, "boom!!!");
170 () => (async e => { throw new MyError(e) })("boom!!"), MyError, "boom!!");
172 () => ({ async thrower(e) { throw new MyError(e); } }).thrower("boom!1!"),
173 MyError, "boom!1!");
175 () => AsyncFunction("msg", "throw new MyError(ms
[all...]
/external/v8/test/mjsunit/es6/
H A Dspread-array.js106 function MyError() {}
113 throw new MyError();
123 }, MyError);
129 function MyError() {}
137 throw new MyError();
147 }, MyError);
H A Dstring-raw.js158 function MyError() {} function
160 get: function() { throw new MyError(); }
162 assertThrows(function() { String.raw(callSiteObj); }, MyError);
196 function MyError() {}
198 throw new MyError();
204 }, MyError);
209 }, MyError);
216 function MyError() {}
219 throw new MyError();
225 }, MyError);
[all...]
H A Dreflect-apply.js80 function MyError() {} function
84 get: function() { throw new MyError(); }
89 }, MyError);
93 }, MyError);
100 function MyError() {}
104 get: function() { throw new MyError(); }
109 }, MyError);
113 }, MyError);
H A Dreflect-construct.js146 function MyError() {} function
150 get: function() { throw new MyError(); }
155 }, MyError);
159 }, MyError);
166 function MyError() {}
170 get: function() { throw new MyError(); }
175 }, MyError);
179 }, MyError);
H A Dcomputed-property-names-classes.js423 function MyError() {};
425 throw new MyError();
431 }, MyError);
436 }, MyError);
441 }, MyError);
H A Dcomputed-property-names.js281 function MyError() {};
283 throw new MyError();
289 }, MyError);
294 }, MyError);
299 }, MyError);
H A Darray-concat.js117 function MyError() {} function
120 throw new MyError();
130 }, MyError);
136 function MyError() {}
139 throw new MyError();
149 }, MyError);
166 function MyError() {}
169 get: function() { throw new MyError(); }
174 }, MyError);
178 }, MyError);
[all...]
/external/autotest/client/common_lib/test_utils/
H A Dmock_demo.py7 class MyError(Exception): class in inherits:Exception
43 raise MyError("woops")
124 m3.method6.expect_call(True).and_raises(MyError("woops"))
/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DSerializingExecutorTest.java175 class MyError extends Error {}
184 throw new MyError();
H A DFuturesTest.java346 static class MyError extends Error {} class in class:FuturesTest
370 runGetIdempotencyTest(errorComposedFuture, MyError.class);
380 runGetIdempotencyTest(Futures.transform(errorInput, newOneTimeErrorThrower()), MyError.class);
381 runGetIdempotencyTest(errorComposedFuture, MyError.class);
419 throw new MyError();
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);
[all...]
/external/autotest/client/bin/
H A Djob_unittest.py499 class MyError(error.TestError): class in function:test_base_job.test_run_test_logs_test_error_from_unhandled_error
501 real_error = MyError("this is the real error message")
533 class MyError(Exception): class in function:test_base_job.test_run_test_logs_non_test_error_from_unhandled_error
535 real_error = MyError("this is the real error message")
537 reason = first_line_comparator("Unhandled MyError: %s" % real_error)
729 #class MyError(error.TestError):
731 #real_error = MyError("this is the real error message")

Completed in 227 milliseconds