Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: runtime/bin/dartutils.h

Issue 9630012: Error reporting on File in dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Style issues Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/common.dart ('k') | runtime/bin/dartutils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.h
diff --git a/runtime/bin/dartutils.h b/runtime/bin/dartutils.h
index a3058b440b3f3bf4c39ae2c695ccca481647103e..8961204dec893eb536db74fa0d3dc98ad396ab19 100644
--- a/runtime/bin/dartutils.h
+++ b/runtime/bin/dartutils.h
@@ -6,6 +6,7 @@
#define BIN_DARTUTILS_H_
#include "bin/builtin.h"
+#include "bin/utils.h"
#include "include/dart_api.h"
#include "platform/globals.h"
@@ -88,6 +89,11 @@ class DartUtils {
static bool PostNull(Dart_Port port_id);
static bool PostInt32(Dart_Port port_id, int32_t value);
+ // Create a new Dart OSError object with the current OS error.
+ static Dart_Handle NewDartOSError();
+ // Create a new Dart OSError object with the provided OS error.
+ static Dart_Handle NewDartOSError(OSError* os_error);
+
static const char* kDartScheme;
static const char* kDartExtensionScheme;
static const char* kBuiltinLibURL;
@@ -155,6 +161,11 @@ class CObject {
Dart_CObject* AsApiCObject() { return cobject_; }
+ // Create a new CObject array with an illegal arguments error.
+ static CObject* IllegalArgumentError();
+ // Create a new CObject array with the current OS error.
+ static CObject* NewOSError();
+
protected:
CObject() : cobject_(NULL) {}
Dart_CObject* cobject_;
« no previous file with comments | « runtime/bin/common.dart ('k') | runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698