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

Issue 10315010: Better checking and error reporting for HTTP client (Closed)

Created:
8 years, 7 months ago by Søren Gjesse
Modified:
8 years, 7 months ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Better checking and error reporting for HTTP client R=ager@google.com BUG=dart:2034 TEST=none Committed: https://code.google.com/p/dart/source/detail?r=7371

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M runtime/bin/http_impl.dart View 2 chunks +5 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Søren Gjesse
8 years, 7 months ago (2012-05-03 13:19:39 UTC) #1
Mads Ager (google)
lgtm https://chromiumcodereview.appspot.com/10315010/diff/1/runtime/bin/http_impl.dart File runtime/bin/http_impl.dart (right): https://chromiumcodereview.appspot.com/10315010/diff/1/runtime/bin/http_impl.dart#newcode1372 runtime/bin/http_impl.dart:1372: throw new NullPointerException(); We could throw a more ...
8 years, 7 months ago (2012-05-03 13:36:28 UTC) #2
Søren Gjesse
8 years, 7 months ago (2012-05-07 11:42:31 UTC) #3
http://codereview.chromium.org/10315010/diff/1/runtime/bin/http_impl.dart
File runtime/bin/http_impl.dart (right):

http://codereview.chromium.org/10315010/diff/1/runtime/bin/http_impl.dart#new...
runtime/bin/http_impl.dart:1372: throw new NullPointerException();
On 2012/05/03 13:36:28, Mads Ager wrote:
> We could throw a more descriptive error here? Not sure it matters much so I'll
> leave it up to you.
> 
> Is null the only thing we need to check here because other checks are done
> later?

Changed to IllegalArgumentException.

Arguments are type checked later.

Powered by Google App Engine
This is Rietveld 408576698