OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of dart.isolate; |
| 6 |
5 class IsolateSpawnException implements Exception { | 7 class IsolateSpawnException implements Exception { |
6 const IsolateSpawnException(String this._s); | 8 const IsolateSpawnException(String this._s); |
7 String toString() => "IsolateSpawnException: '$_s'"; | 9 String toString() => "IsolateSpawnException: '$_s'"; |
8 final String _s; | 10 final String _s; |
9 } | 11 } |
10 | 12 |
11 /** | 13 /** |
12 * The initial [ReceivePort] available by default for this isolate. This | 14 * The initial [ReceivePort] available by default for this isolate. This |
13 * [ReceivePort] is created automatically and it is commonly used to establish | 15 * [ReceivePort] is created automatically and it is commonly used to establish |
14 * the first communication between isolates (see [spawnFunction] and | 16 * the first communication between isolates (see [spawnFunction] and |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 const IsolateUnhandledException(this.message, this.source, this.stackTrace); | 163 const IsolateUnhandledException(this.message, this.source, this.stackTrace); |
162 | 164 |
163 String toString() { | 165 String toString() { |
164 return 'IsolateUnhandledException: exception while handling message: ' | 166 return 'IsolateUnhandledException: exception while handling message: ' |
165 '${message} \n ' | 167 '${message} \n ' |
166 '${source.toString().replaceAll("\n", "\n ")}\n' | 168 '${source.toString().replaceAll("\n", "\n ")}\n' |
167 'original stack trace:\n ' | 169 'original stack trace:\n ' |
168 '${stackTrace.toString().replaceAll("\n","\n ")}'; | 170 '${stackTrace.toString().replaceAll("\n","\n ")}'; |
169 } | 171 } |
170 } | 172 } |
OLD | NEW |