| OLD | NEW |
| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 /** | 277 /** |
| 278 * Gets the stack trace Object from an unhandled exception error handle. | 278 * Gets the stack trace Object from an unhandled exception error handle. |
| 279 */ | 279 */ |
| 280 DART_EXPORT Dart_Handle Dart_ErrorGetStacktrace(Dart_Handle handle); | 280 DART_EXPORT Dart_Handle Dart_ErrorGetStacktrace(Dart_Handle handle); |
| 281 | 281 |
| 282 /** | 282 /** |
| 283 * Produces an api error handle with the provided error message. | 283 * Produces an api error handle with the provided error message. |
| 284 * | 284 * |
| 285 * Requires there to be a current isolate. | 285 * Requires there to be a current isolate. |
| 286 * | 286 * |
| 287 * \param format A printf style format specifier used to construct the | 287 * \param error the error message. |
| 288 * error message. | |
| 289 */ | 288 */ |
| 290 DART_EXPORT Dart_Handle Dart_NewApiError(const char* format, ...); | 289 DART_EXPORT Dart_Handle Dart_NewApiError(const char* error); |
| 291 | 290 |
| 292 /** | 291 /** |
| 293 * Produces a new unhandled exception error handle. | 292 * Produces a new unhandled exception error handle. |
| 294 * | 293 * |
| 295 * Requires there to be a current isolate. | 294 * Requires there to be a current isolate. |
| 296 * | 295 * |
| 297 * \param exception An instance of a Dart object to be thrown. | 296 * \param exception An instance of a Dart object to be thrown. |
| 298 */ | 297 */ |
| 299 DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); | 298 DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); |
| 300 | 299 |
| 301 /* Deprecated. */ | 300 /* Deprecated. */ |
| 302 /* TODO(turnidge): Remove all uses and delete. */ | 301 /* TODO(turnidge): Remove all uses and delete. */ |
| 303 DART_EXPORT Dart_Handle Dart_Error(const char* format, ...); | 302 DART_EXPORT Dart_Handle Dart_Error(const char* error); |
| 304 | 303 |
| 305 /** | 304 /** |
| 306 * Propagates an error. | 305 * Propagates an error. |
| 307 * | 306 * |
| 308 * If the provided handle is an unhandled exception error, this | 307 * If the provided handle is an unhandled exception error, this |
| 309 * function will cause the unhandled exception to be rethrown. This | 308 * function will cause the unhandled exception to be rethrown. This |
| 310 * will proceeed in the standard way, walking up Dart frames until an | 309 * will proceeed in the standard way, walking up Dart frames until an |
| 311 * appropriate 'catch' block is found, executing 'finally' blocks, | 310 * appropriate 'catch' block is found, executing 'finally' blocks, |
| 312 * etc. | 311 * etc. |
| 313 * | 312 * |
| (...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2312 * | 2311 * |
| 2313 * \param object An object. | 2312 * \param object An object. |
| 2314 * \param peer A value to store in the peer field. | 2313 * \param peer A value to store in the peer field. |
| 2315 * | 2314 * |
| 2316 * \return Returns an error if 'object' is a subtype of Null, num, or | 2315 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2317 * bool. | 2316 * bool. |
| 2318 */ | 2317 */ |
| 2319 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2318 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2320 | 2319 |
| 2321 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2320 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |