HomeSort by relevance Sort by last modified time
    Searched refs:MyError (Results 1 - 9 of 9) sorted by null

  /prebuilts/go/darwin-x86/src/errors/
example_test.go 12 // MyError is an error implementation that includes a time and message.
13 type MyError struct {
18 func (e MyError) Error() string {
23 return MyError{
  /prebuilts/go/linux-x86/src/errors/
example_test.go 12 // MyError is an error implementation that includes a time and message.
13 type MyError struct {
18 func (e MyError) Error() string {
23 return MyError{
  /external/autotest/client/common_lib/test_utils/
mock_demo.py 7 class MyError(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/
SerializingExecutorTest.java 175 class MyError extends Error {}
184 throw new MyError();
FuturesTest.java 346 static class MyError extends Error {}
370 runGetIdempotencyTest(errorComposedFuture, MyError.class);
380 runGetIdempotencyTest(Futures.transform(errorInput, newOneTimeErrorThrower()), MyError.class);
381 runGetIdempotencyTest(errorComposedFuture, MyError.class);
419 throw new MyError();
    [all...]
  /external/autotest/client/bin/
job_unittest.py 371 class MyError(error.TestError):
373 real_error = MyError("this is the real error message")
405 class MyError(Exception):
407 real_error = MyError("this is the real error message")
409 reason = first_line_comparator("Unhandled MyError: %s" % real_error)
534 #class MyError(error.TestError):
536 #real_error = MyError("this is the real error message")
  /libcore/jsr166-tests/src/test/java/jsr166/
ForkJoinPoolTest.java 71 static class MyError extends Error {}
76 protected void onStart() { super.onStart(); throw new MyError(); }
282 threadAssertTrue(e instanceof MyError);
    [all...]
  /prebuilts/go/darwin-x86/src/text/template/
exec_test.go 204 var myError = errors.New("my error")
206 // MyError returns a value and an error according to its argument.
207 func (t *T) MyError(error bool) (bool, error) {
209 return true, myError
502 {"error method, error", "{{.MyError true}}", "", tVal, false},
503 {"error method, no error", "{{.MyError false}}", "false", tVal, true},
751 _, err := tmpl.Parse("{{.MyError true}}")
758 } else if !strings.Contains(err.Error(), myError.Error()) {
762 t.Errorf("expected myError; got %s", err)
    [all...]
  /prebuilts/go/linux-x86/src/text/template/
exec_test.go 204 var myError = errors.New("my error")
206 // MyError returns a value and an error according to its argument.
207 func (t *T) MyError(error bool) (bool, error) {
209 return true, myError
502 {"error method, error", "{{.MyError true}}", "", tVal, false},
503 {"error method, no error", "{{.MyError false}}", "false", tVal, true},
751 _, err := tmpl.Parse("{{.MyError true}}")
758 } else if !strings.Contains(err.Error(), myError.Error()) {
762 t.Errorf("expected myError; got %s", err)
    [all...]

Completed in 182 milliseconds