/external/v8/test/mjsunit/ |
H A D | has-own-property-evaluation-order.js | 5 function MyError() {} function 10 throw new MyError(); 13 }, MyError);
|
H A D | error-constructors.js | 93 function MyError() {} class 94 MyError.prototype = new Error; 96 SyntaxError, ReferenceError, TypeError, MyError];
|
/external/v8/test/mjsunit/harmony/ |
H A D | regexp-change-exec.js | 5 class MyError extends Error { } 6 RegExp.prototype.exec = () => { throw new MyError() }; 7 assertThrows(() => "foo".match(/bar/), MyError);
|
H A D | do-expressions.js | 8 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 D | async-await-basic.js | 161 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 D | spread-array.js | 106 function MyError() {} 113 throw new MyError(); 123 }, MyError); 129 function MyError() {} 137 throw new MyError(); 147 }, MyError);
|
H A D | string-raw.js | 158 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 D | reflect-apply.js | 80 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 D | reflect-construct.js | 146 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 D | computed-property-names-classes.js | 423 function MyError() {}; 425 throw new MyError(); 431 }, MyError); 436 }, MyError); 441 }, MyError);
|
H A D | computed-property-names.js | 281 function MyError() {}; 283 throw new MyError(); 289 }, MyError); 294 }, MyError); 299 }, MyError);
|
H A D | array-concat.js | 117 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 D | mock_demo.py | 7 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 D | SerializingExecutorTest.java | 175 class MyError extends Error {} 184 throw new MyError();
|
H A D | FuturesTest.java | 346 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 D | job_unittest.py | 499 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")
|