19std::atomic<DartError::UnhandledExceptionReporter> log_unhandled_exception =
20 DefaultLogUnhandledException;
22void ReportUnhandledException(
Dart_Handle exception_handle,
24 log_unhandled_exception.load()(exception_handle, stack_trace_handle);
30 log_unhandled_exception.store(
reporter);
40 ReportUnhandledException(exception_handle, stack_trace_handle);
DART_EXPORT Dart_Handle Dart_ErrorGetStackTrace(Dart_Handle handle)
DART_EXPORT bool Dart_IsApiError(Dart_Handle handle)
struct _Dart_Handle * Dart_Handle
DART_EXPORT bool Dart_IsFatalError(Dart_Handle handle)
DART_EXPORT bool Dart_IsUnhandledExceptionError(Dart_Handle handle)
DART_EXPORT Dart_Handle Dart_ErrorGetException(Dart_Handle handle)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
DART_EXPORT bool Dart_IsCompilationError(Dart_Handle handle)
const char kInvalidArgument[]
void(*)(Dart_Handle, Dart_Handle) UnhandledExceptionReporter
DartErrorHandleType GetErrorHandleType(Dart_Handle handle)
void SetUnhandledExceptionReporter(DartError::UnhandledExceptionReporter reporter)
int GetErrorExitCode(Dart_Handle handle)
bool CheckAndHandleError(Dart_Handle handle)
void Log(const char *format,...)