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

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

Issue 26751005: Remove deprecated call Dart_Error from the API. There are no uses of it. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 /** 291 /**
292 * Produces a new unhandled exception error handle. 292 * Produces a new unhandled exception error handle.
293 * 293 *
294 * Requires there to be a current isolate. 294 * Requires there to be a current isolate.
295 * 295 *
296 * \param exception An instance of a Dart object to be thrown. 296 * \param exception An instance of a Dart object to be thrown.
297 */ 297 */
298 DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); 298 DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception);
299 299
300 /* Deprecated. */
301 /* TODO(turnidge): Remove all uses and delete. */
302 DART_EXPORT Dart_Handle Dart_Error(const char* error);
303
304 /** 300 /**
305 * Propagates an error. 301 * Propagates an error.
306 * 302 *
307 * If the provided handle is an unhandled exception error, this 303 * If the provided handle is an unhandled exception error, this
308 * function will cause the unhandled exception to be rethrown. This 304 * function will cause the unhandled exception to be rethrown. This
309 * will proceeed in the standard way, walking up Dart frames until an 305 * will proceeed in the standard way, walking up Dart frames until an
310 * appropriate 'catch' block is found, executing 'finally' blocks, 306 * appropriate 'catch' block is found, executing 'finally' blocks,
311 * etc. 307 * etc.
312 * 308 *
313 * If the error is not an unhandled exception error, we will unwind 309 * If the error is not an unhandled exception error, we will unwind
(...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after
2311 * 2307 *
2312 * \param object An object. 2308 * \param object An object.
2313 * \param peer A value to store in the peer field. 2309 * \param peer A value to store in the peer field.
2314 * 2310 *
2315 * \return Returns an error if 'object' is a subtype of Null, num, or 2311 * \return Returns an error if 'object' is a subtype of Null, num, or
2316 * bool. 2312 * bool.
2317 */ 2313 */
2318 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2314 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2319 2315
2320 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2316 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698