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

Side by Side Diff: components/cronet/android/java/src/org/chromium/net/UrlRequestException.java

Issue 586143002: Initial implementation of Cronet Async API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments, add more shutdown tests. Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.net; 5 package org.chromium.net;
6 6
7 import java.io.IOException; 7 import java.io.IOException;
8 8
9 /** 9 /**
10 * 10 *
xunjieli 2014/10/31 19:57:21 Missing java doc.
mef 2014/10/31 20:39:16 Done.
11 */ 11 */
12 public class UrlRequestException extends IOException { 12 public class UrlRequestException extends IOException {
13 /** Net Error code if exception is reported by native. */
14 final int mNetError;
15
16 UrlRequestException(String message, Throwable cause) {
17 super(message, cause);
18 mNetError = 0;
19 }
20
21 UrlRequestException(String message, int netError) {
22 super(message, null);
23 mNetError = netError;
24 }
25
26 /** @return Error code if exception is reported by native. */
27 public int netError() {
28 return mNetError;
29 }
13 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698