| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** | 7 /** |
| 8 * Exception reported from UrlRequest or BidirectionalStream. | 8 * Exception reported from UrlRequest or BidirectionalStream. |
| 9 */ | 9 */ |
| 10 // TODO(mef): Will replace UrlRequestException soon. | 10 // TODO(mef): Will replace UrlRequestException soon. |
| 11 public class CronetException extends UrlRequestException { | 11 public class CronetException extends UrlRequestException { |
| 12 CronetException(String message, Throwable cause) { | 12 /** |
| 13 * @hide only used by internal implementation. |
| 14 */ |
| 15 public CronetException(String message, Throwable cause) { |
| 13 super(message, cause); | 16 super(message, cause); |
| 14 } | 17 } |
| 15 | 18 |
| 16 CronetException(String message, int errorCode, int cronetInternalErrorCode)
{ | 19 /** |
| 20 * @hide only used by internal implementation. |
| 21 */ |
| 22 public CronetException(String message, int errorCode, int cronetInternalErro
rCode) { |
| 17 super(message, errorCode, cronetInternalErrorCode); | 23 super(message, errorCode, cronetInternalErrorCode); |
| 18 } | 24 } |
| 19 } | 25 } |
| OLD | NEW |