mirror of
https://github.com/encounter/engine.git
synced 2026-07-10 03:18:43 -07:00
131085ecad
with the synchronous call, this actually blocks the Flutter component from serving its out/directory and prevents the Inspect synchronous discovery DX-1568 #done #comment TESTED=`fx shell run fuchsia-pkg://fuchsia.com/crasher_dart#meta/crasher_dart.cmx` (report id 0b59643af026bc37) TESTED=`fx shell sessionctl add_mod fuchsia-pkg://fuchsia.com/crasher_flutter#meta/crasher_flutter.cmx` then clicked on "Th Change-Id: I8b0abd1034dba66cd7bb1d6768322cab36ed453b Ported from Topaz tree.
32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_RUNTIME_DART_UTILS_HANDLE_EXCEPTION_H_
|
|
#define FLUTTER_SHELL_PLATFORM_FUCHSIA_RUNTIME_DART_UTILS_HANDLE_EXCEPTION_H_
|
|
|
|
#include <lib/sys/cpp/service_directory.h>
|
|
#include <third_party/dart/runtime/include/dart_api.h>
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace dart_utils {
|
|
|
|
// If |result| is a Dart Exception, passes the exception message and stack trace
|
|
// to the crash analyzer service for further handling.
|
|
void HandleIfException(std::shared_ptr<::sys::ServiceDirectory> services,
|
|
const std::string& component_url,
|
|
Dart_Handle result);
|
|
|
|
// Passes the exception message and stack trace to the crash analyzer service
|
|
// for further handling.
|
|
void HandleException(std::shared_ptr<::sys::ServiceDirectory> services,
|
|
const std::string& component_url,
|
|
const std::string& error,
|
|
const std::string& stack_trace);
|
|
|
|
} // namespace dart_utils
|
|
|
|
#endif // FLUTTER_SHELL_PLATFORM_FUCHSIA_RUNTIME_DART_UTILS_HANDLE_EXCEPTION_H_
|