Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: runtime/include/dart_api.h

Issue 2350633003: Add Dart_GetStickyError (Closed)
Patch Set: turnidge review Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 * Called when the embedder has paused the current isolate on exit and when 1171 * Called when the embedder has paused the current isolate on exit and when
1172 * the embedder has resumed the isolate. 1172 * the embedder has resumed the isolate.
1173 * 1173 *
1174 * \param paused Is the isolate paused on exit? 1174 * \param paused Is the isolate paused on exit?
1175 */ 1175 */
1176 DART_EXPORT void Dart_SetPausedOnExit(bool paused); 1176 DART_EXPORT void Dart_SetPausedOnExit(bool paused);
1177 1177
1178 1178
1179 /** 1179 /**
1180 * Called when the embedder has caught a top level unhandled exception error 1180 * Called when the embedder has caught a top level unhandled exception error
1181 * in the current isolate. Also marks the isolate as paused at exit. 1181 * in the current isolate.
1182 * 1182 *
1183 * NOTE: It is illegal to call this twice on the same isolate. 1183 * NOTE: It is illegal to call this twice on the same isolate without first
1184 * clearing the sticky error to null.
1184 * 1185 *
1185 * \param error The unhandled exception error. 1186 * \param error The unhandled exception error.
1186 */ 1187 */
1187 DART_EXPORT void Dart_SetStickyError(Dart_Handle error); 1188 DART_EXPORT void Dart_SetStickyError(Dart_Handle error);
1188 1189
1189 1190
1190 /** 1191 /**
1191 * Does the current isolate have a sticky error? 1192 * Does the current isolate have a sticky error?
1192 */ 1193 */
1193 DART_EXPORT bool Dart_HasStickyError(); 1194 DART_EXPORT bool Dart_HasStickyError();
1194 1195
1195 1196
1196 /** 1197 /**
1198 * Gets the sticky error for the current isolate.
1199 *
1200 * \return A handle to the sticky error object or null.
1201 */
1202 DART_EXPORT Dart_Handle Dart_GetStickyError();
siva 2016/09/22 19:43:54 Do we need both Dart_HasStickyError and Dart_GetSt
1203
1204
1205 /**
1197 * Handles the next pending message for the current isolate. 1206 * Handles the next pending message for the current isolate.
1198 * 1207 *
1199 * May generate an unhandled exception error. 1208 * May generate an unhandled exception error.
1200 * 1209 *
1201 * \return A valid handle if no error occurs during the operation. 1210 * \return A valid handle if no error occurs during the operation.
1202 */ 1211 */
1203 DART_EXPORT Dart_Handle Dart_HandleMessage(); 1212 DART_EXPORT Dart_Handle Dart_HandleMessage();
1204 1213
1205 /** 1214 /**
1206 * Handles all pending messages for the current isolate. 1215 * Handles all pending messages for the current isolate.
(...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after
3179 /** 3188 /**
3180 * Returns whether the VM was initialized with a precompiled snapshot. Only 3189 * Returns whether the VM was initialized with a precompiled snapshot. Only
3181 * valid after Dart_Initialize. 3190 * valid after Dart_Initialize.
3182 * DEPRECATED. This is currently used to disable Platform.executable and 3191 * DEPRECATED. This is currently used to disable Platform.executable and
3183 * Platform.resolvedExecutable under precompilation to prevent process 3192 * Platform.resolvedExecutable under precompilation to prevent process
3184 * spawning tests from becoming fork-bombs. 3193 * spawning tests from becoming fork-bombs.
3185 */ 3194 */
3186 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); 3195 DART_EXPORT bool Dart_IsRunningPrecompiledCode();
3187 3196
3188 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3197 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698