blob: 3064849e09bc48cedaea3e75255092422b2f38f5 [file] [log] [blame]
// Copyright 2016 The Fuchsia 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 LIB_TONIC_DART_STICKY_ERROR_H_
#define LIB_TONIC_DART_STICKY_ERROR_H_
#include "dart/runtime/include/dart_api.h"
namespace tonic {
class DartStickyError {
public:
// Returns true if the sticky error was set.
static bool MaybeSet(Dart_Handle result);
// Returns true if the isolate has a sticky error set.
static bool IsSet();
};
} // namespace tonic
#endif // LIB_TONIC_DART_MICROTASK_QUEUE_H_