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