| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.util.remote_exception; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:isolate'; | 6 import 'dart:isolate'; |
| 9 | 7 |
| 10 import 'package:stack_trace/stack_trace.dart'; | 8 import 'package:stack_trace/stack_trace.dart'; |
| 11 | 9 |
| 12 import '../frontend/expect.dart'; | 10 import '../frontend/expect.dart'; |
| 13 | 11 |
| 14 /// An exception that was thrown remotely. | 12 /// An exception that was thrown remotely. |
| 15 /// | 13 /// |
| 16 /// This could be an exception thrown in a different isolate, a different | 14 /// This could be an exception thrown in a different isolate, a different |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 _RemoteTestFailure(String message, String type, String toString) | 100 _RemoteTestFailure(String message, String type, String toString) |
| 103 : super._(message, type, toString); | 101 : super._(message, type, toString); |
| 104 } | 102 } |
| 105 | 103 |
| 106 /// A subclass of [RemoteException] that implements [IsolateSpawnException]. | 104 /// A subclass of [RemoteException] that implements [IsolateSpawnException]. |
| 107 class _RemoteIsolateSpawnException extends RemoteException | 105 class _RemoteIsolateSpawnException extends RemoteException |
| 108 implements IsolateSpawnException { | 106 implements IsolateSpawnException { |
| 109 _RemoteIsolateSpawnException(String message, String type, String toString) | 107 _RemoteIsolateSpawnException(String message, String type, String toString) |
| 110 : super._(message, type, toString); | 108 : super._(message, type, toString); |
| 111 } | 109 } |
| OLD | NEW |