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.async; | 5 part of dart.async; |
6 | 6 |
7 /** | 7 /** |
8 * Error result of an asynchronous computation. | 8 * Error result of an asynchronous computation. |
9 */ | 9 */ |
10 class AsyncError { | 10 class AsyncError { |
11 /** The actual error thrown by the computation. */ | 11 /** The actual error thrown by the computation. */ |
12 final Object error; | 12 final Object error; |
13 /** Stack trace corresponding to the error, if available. */ | 13 /** Stack trace corresponding to the error, if available. */ |
14 final Object stackTrace; | 14 final Object stackTrace; |
15 /** Asynchronous error leading to this error, if error handling fails. */ | 15 /** Asynchronous error leading to this error, if error handling fails. */ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // directly so that we can pass the stack trace. | 65 // directly so that we can pass the stack trace. |
66 throw error; | 66 throw error; |
67 }); | 67 }); |
68 } catch (e) { | 68 } catch (e) { |
69 // Unfortunately there is not much more we can do... | 69 // Unfortunately there is not much more we can do... |
70 reportError(); | 70 reportError(); |
71 } | 71 } |
72 } | 72 } |
73 } | 73 } |
74 | 74 |
OLD | NEW |