| Index: sdk/lib/io/socket.dart
|
| diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart
|
| index 1f1211a49d24ce05bc1cadd8b4a18226be1380c5..957440e435bfe925727dcbe956cded8c04d6fc6a 100644
|
| --- a/sdk/lib/io/socket.dart
|
| +++ b/sdk/lib/io/socket.dart
|
| @@ -467,8 +467,16 @@ abstract class Socket implements Stream<List<int>>, IOSink {
|
|
|
|
|
| class SocketException implements IOException {
|
| - const SocketException([String this.message = "",
|
| - OSError this.osError = null]);
|
| + final String message;
|
| + final OSError osError;
|
| + final InternetAddress address;
|
| + final int port;
|
| +
|
| + const SocketException(String this.message,
|
| + {OSError this.osError,
|
| + InternetAddress this.address,
|
| + int this.port});
|
| +
|
| String toString() {
|
| StringBuffer sb = new StringBuffer();
|
| sb.write("SocketException");
|
| @@ -480,8 +488,16 @@ class SocketException implements IOException {
|
| } else if (osError != null) {
|
| sb.write(": $osError");
|
| }
|
| + if (address != null) {
|
| + if (address.host.isNotEmpty) {
|
| + sb.write(", address = ${address.host}");
|
| + } else {
|
| + sb.write(", address = ${address.address}");
|
| + }
|
| + }
|
| + if (port != null) {
|
| + sb.write(", port = $port");
|
| + }
|
| return sb.toString();
|
| }
|
| - final String message;
|
| - final OSError osError;
|
| }
|
|
|