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

Unified Diff: components/cronet/android/api/src/org/chromium/net/UrlRequestException.java

Issue 2506653003: Instrument CronetUrlRequestTest#testThrowOrCancelInOnCanceled flaky test (Closed)
Patch Set: Spelling fix Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/api/src/org/chromium/net/UrlRequestException.java
diff --git a/components/cronet/android/api/src/org/chromium/net/UrlRequestException.java b/components/cronet/android/api/src/org/chromium/net/UrlRequestException.java
index 8cbeafbc098441dbee4b469573a96e8d8c91f924..03f638bb02500f276adeb6b638551e4510f155da 100644
--- a/components/cronet/android/api/src/org/chromium/net/UrlRequestException.java
+++ b/components/cronet/android/api/src/org/chromium/net/UrlRequestException.java
@@ -161,4 +161,15 @@ public class UrlRequestException extends IOException {
return true;
}
}
+
+ @Override
+ public String getMessage() {
+ StringBuilder b = new StringBuilder(super.getMessage());
+ b.append(", ErrorCode=").append(mErrorCode);
+ if (mCronetInternalErrorCode != 0) {
+ b.append(", InternalErrorCode=").append(mCronetInternalErrorCode);
+ }
+ b.append(", Retryable=").append(immediatelyRetryable());
+ return b.toString();
+ }
}
« no previous file with comments | « no previous file | components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698