Chromium Code Reviews| 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 92201aa32471128ce721a81cab80fbf8b061f73b..22360b01d018cc1f0dab9a2b99e380494e455be3 100644 |
| --- a/components/cronet/android/api/src/org/chromium/net/UrlRequestException.java |
| +++ b/components/cronet/android/api/src/org/chromium/net/UrlRequestException.java |
| @@ -14,7 +14,10 @@ import java.io.IOException; |
| * {@link #getErrorCode} will return {@link #ERROR_LISTENER_EXCEPTION_THROWN}. |
| * <li>Cronet fails to process a network request. In this case |
| * {@link #getErrorCode} and {@link #getCronetInternalErrorCode} can be used to get more |
| - * information about the specific type of failure. |
| + * information about the specific type of failure. If {@link #getErrorCode} |
| + * returns {@link #ERROR_QUIC_PROTOCOL_FAILED}, this exception can be cast to a |
| + * {@link QuicException} |
|
pauljensen
2016/07/01 12:22:02
funky line wrapping
mgersh
2016/07/01 15:21:15
Done.
|
| + * which can provide further details. |
| * </ul> |
| */ |
| public class UrlRequestException extends IOException { |
| @@ -64,6 +67,10 @@ public class UrlRequestException extends IOException { |
| */ |
| public static final int ERROR_ADDRESS_UNREACHABLE = UrlRequestError.ADDRESS_UNREACHABLE; |
| /** |
| + * Error code indicating an error related to the QUIC protocol. |
|
pauljensen
2016/07/01 12:22:02
mention this class can be cast to QuicException fo
pauljensen
2016/07/01 12:22:02
linkify QUIC
mgersh
2016/07/01 15:21:15
Done.
mgersh
2016/07/01 15:21:15
Done.
|
| + */ |
| + public static final int ERROR_QUIC_PROTOCOL_FAILED = UrlRequestError.QUIC_PROTOCOL_FAILED; |
| + /** |
| * Error code indicating another type of error was encountered. |
| * {@link #getCronetInternalErrorCode} can be consulted to get a more specific cause. |
| */ |