| 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 unittest.remote_exception; | 5 library unittest.util.remote_exception; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:isolate'; | 8 import 'dart:isolate'; |
| 9 | 9 |
| 10 import 'package:stack_trace/stack_trace.dart'; | 10 import 'package:stack_trace/stack_trace.dart'; |
| 11 | 11 |
| 12 import 'expect.dart'; | 12 import '../frontend/expect.dart'; |
| 13 | 13 |
| 14 /// An exception that was thrown remotely. | 14 /// An exception that was thrown remotely. |
| 15 /// | 15 /// |
| 16 /// This could be an exception thrown in a different isolate, a different | 16 /// This could be an exception thrown in a different isolate, a different |
| 17 /// process, or on an entirely different computer. | 17 /// process, or on an entirely different computer. |
| 18 class RemoteException implements Exception { | 18 class RemoteException implements Exception { |
| 19 /// The original exception's message, if it had one. | 19 /// The original exception's message, if it had one. |
| 20 /// | 20 /// |
| 21 /// If the original exception was a plain string, this will contain that | 21 /// If the original exception was a plain string, this will contain that |
| 22 /// string. | 22 /// string. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 _RemoteTestFailure(String message, String type, String toString) | 102 _RemoteTestFailure(String message, String type, String toString) |
| 103 : super._(message, type, toString); | 103 : super._(message, type, toString); |
| 104 } | 104 } |
| 105 | 105 |
| 106 /// A subclass of [RemoteException] that implements [IsolateSpawnException]. | 106 /// A subclass of [RemoteException] that implements [IsolateSpawnException]. |
| 107 class _RemoteIsolateSpawnException extends RemoteException | 107 class _RemoteIsolateSpawnException extends RemoteException |
| 108 implements IsolateSpawnException { | 108 implements IsolateSpawnException { |
| 109 _RemoteIsolateSpawnException(String message, String type, String toString) | 109 _RemoteIsolateSpawnException(String message, String type, String toString) |
| 110 : super._(message, type, toString); | 110 : super._(message, type, toString); |
| 111 } | 111 } |
| OLD | NEW |