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

Unified Diff: runtime/bin/secure_socket.h

Issue 16123036: Clean up dart:io exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/directory.cc ('k') | runtime/bin/socket_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/secure_socket.h
diff --git a/runtime/bin/secure_socket.h b/runtime/bin/secure_socket.h
index 45334d6ab6bea127e662a1cecb91d2d97c9fd621..010b5ad8c7c60f9e6e90b5decb765d7fc0a6067d 100644
--- a/runtime/bin/secure_socket.h
+++ b/runtime/bin/secure_socket.h
@@ -26,9 +26,9 @@ namespace dart {
namespace bin {
static void ThrowException(const char* message) {
- Dart_Handle socket_io_exception =
- DartUtils::NewDartSocketIOException(message, Dart_Null());
- Dart_ThrowException(socket_io_exception);
+ Dart_Handle socket_exception =
+ DartUtils::NewDartSocketException(message, Dart_Null());
+ Dart_ThrowException(socket_exception);
}
@@ -38,9 +38,9 @@ static void ThrowPRException(const char* message) {
const char* error_message = PR_ErrorToString(error_code, PR_LANGUAGE_EN);
OSError os_error_struct(error_code, error_message, OSError::kNSS);
Dart_Handle os_error = DartUtils::NewDartOSError(&os_error_struct);
- Dart_Handle socket_io_exception =
- DartUtils::NewDartSocketIOException(message, os_error);
- Dart_ThrowException(socket_io_exception);
+ Dart_Handle socket_exception =
+ DartUtils::NewDartSocketException(message, os_error);
+ Dart_ThrowException(socket_exception);
}
/*
« no previous file with comments | « runtime/bin/directory.cc ('k') | runtime/bin/socket_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698