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

Unified Diff: runtime/bin/utils.h

Issue 9720045: Extend dart:io error handling to all socket functions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments 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/socket_win.cc ('k') | runtime/bin/utils_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/utils.h
diff --git a/runtime/bin/utils.h b/runtime/bin/utils.h
index 7f0e41fa61d080a08e1ebb556b5a2f8818c0958f..7c050a424ae403f58648b4a934b4166f4bbae2b5 100644
--- a/runtime/bin/utils.h
+++ b/runtime/bin/utils.h
@@ -29,10 +29,13 @@ class OSError {
virtual ~OSError() { free(message_); }
SubSystem sub_system() { return sub_system_; }
- void set_sub_system(SubSystem sub_system) { sub_system_ = sub_system; }
int code() { return code_; }
- void set_code(int code) { code_ = code; }
char* message() { return message_; }
+ void SetCodeAndMessage(SubSystem sub_system, int code);
+
+ private:
+ void set_sub_system(SubSystem sub_system) { sub_system_ = sub_system; }
+ void set_code(int code) { code_ = code; }
void SetMessage(const char* message) {
free(message_);
if (message == NULL) {
@@ -42,7 +45,6 @@ class OSError {
}
}
- private:
SubSystem sub_system_;
int code_;
char* message_;
« no previous file with comments | « runtime/bin/socket_win.cc ('k') | runtime/bin/utils_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698