| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 * | 301 * |
| 302 * \param error the error message. | 302 * \param error the error message. |
| 303 */ | 303 */ |
| 304 DART_EXPORT Dart_Handle Dart_NewApiError(const char* error); | 304 DART_EXPORT Dart_Handle Dart_NewApiError(const char* error); |
| 305 | 305 |
| 306 /** | 306 /** |
| 307 * Produces a new unhandled exception error handle. | 307 * Produces a new unhandled exception error handle. |
| 308 * | 308 * |
| 309 * Requires there to be a current isolate. | 309 * Requires there to be a current isolate. |
| 310 * | 310 * |
| 311 * \param exception An instance of a Dart object to be thrown. | 311 * \param exception An instance of a Dart object to be thrown or |
| 312 * an ApiError or CompilationError handle. |
| 313 * When an ApiError or CompilationError handle is passed in |
| 314 * a string object of the error message is created and it becomes |
| 315 * the Dart object to be thrown. |
| 312 */ | 316 */ |
| 313 DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); | 317 DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); |
| 314 | 318 |
| 315 /** | 319 /** |
| 316 * Propagates an error. | 320 * Propagates an error. |
| 317 * | 321 * |
| 318 * If the provided handle is an unhandled exception error, this | 322 * If the provided handle is an unhandled exception error, this |
| 319 * function will cause the unhandled exception to be rethrown. This | 323 * function will cause the unhandled exception to be rethrown. This |
| 320 * will proceed in the standard way, walking up Dart frames until an | 324 * will proceed in the standard way, walking up Dart frames until an |
| 321 * appropriate 'catch' block is found, executing 'finally' blocks, | 325 * appropriate 'catch' block is found, executing 'finally' blocks, |
| (...skipping 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2829 | 2833 |
| 2830 /** | 2834 /** |
| 2831 * Returns the port that script load requests should be sent on. | 2835 * Returns the port that script load requests should be sent on. |
| 2832 * | 2836 * |
| 2833 * \return Returns the port for load requests or ILLEGAL_PORT if the service | 2837 * \return Returns the port for load requests or ILLEGAL_PORT if the service |
| 2834 * isolate failed to startup or does not support load requests. | 2838 * isolate failed to startup or does not support load requests. |
| 2835 */ | 2839 */ |
| 2836 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort(); | 2840 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort(); |
| 2837 | 2841 |
| 2838 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2842 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |