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

Issue 18768002: Add 'uri' to HttpException, and include in toString. (Closed)

Created:
7 years, 5 months ago by Anders Johnsen
Modified:
7 years, 4 months ago
Reviewers:
Bill Hesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add 'uri' to HttpException, and include in toString. BUG= R=whesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=24786

Patch Set 1 #

Total comments: 6

Patch Set 2 : Cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -25 lines) Patch
M sdk/lib/io/http.dart View 1 1 chunk +13 lines, -4 lines 0 comments Download
M sdk/lib/io/http_impl.dart View 1 16 chunks +44 lines, -21 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
While this will be ', uri = /' in the simple cases, I think this ...
7 years, 5 months ago (2013-07-05 12:25:22 UTC) #1
Bill Hesse
lgtm https://codereview.chromium.org/18768002/diff/1/sdk/lib/io/http.dart File sdk/lib/io/http.dart (right): https://codereview.chromium.org/18768002/diff/1/sdk/lib/io/http.dart#newcode1402 sdk/lib/io/http.dart:1402: Remove the blank line here? https://codereview.chromium.org/18768002/diff/1/sdk/lib/io/http.dart#newcode1414 sdk/lib/io/http.dart:1414: return ...
7 years, 5 months ago (2013-07-05 12:57:45 UTC) #2
Anders Johnsen
Committed patchset #2 manually as r24786 (presubmit successful).
7 years, 5 months ago (2013-07-05 13:08:51 UTC) #3
Anders Johnsen
7 years, 4 months ago (2013-08-20 05:46:31 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/18768002/diff/1/sdk/lib/io/http.dart
File sdk/lib/io/http.dart (right):

https://codereview.chromium.org/18768002/diff/1/sdk/lib/io/http.dart#newcode1402
sdk/lib/io/http.dart:1402: 
On 2013/07/05 12:57:45, Bill Hesse wrote:
> Remove the blank line here?

Done.

https://codereview.chromium.org/18768002/diff/1/sdk/lib/io/http.dart#newcode1414
sdk/lib/io/http.dart:1414: return b.toString();
On 2013/07/05 12:57:45, Bill Hesse wrote:
> How about 
> (uri == null) ? "HttpException: $message" :
>                 "HttpException: $message, uri = $uri"

We use buffers in other exceptions, I think it's fine to follow that style.

https://codereview.chromium.org/18768002/diff/1/sdk/lib/io/http_impl.dart
File sdk/lib/io/http_impl.dart (right):

https://codereview.chromium.org/18768002/diff/1/sdk/lib/io/http_impl.dart#new...
sdk/lib/io/http_impl.dart:1289: });
On 2013/07/05 12:57:45, Bill Hesse wrote:
> If _currentUri is used to pass the URI to other methods, both synchronously
and
> asynchronously, then it should be set to null or INVALID when the connection
is
> done with this particular request.
> 
> If it is only used synchronously, then set it to null when we return.

Done.

Powered by Google App Engine
This is Rietveld 408576698