| 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 CronetException(String message, Throwable cause) { |
| 13 super(message, cause); | 13 super(message, cause); |
| 14 } | 14 } |
| 15 | 15 |
| 16 CronetException(String message, int netError) { | 16 CronetException(String message, int errorCode, int cronetInternalErrorCode)
{ |
| 17 super(message, netError); | 17 super(message, errorCode, cronetInternalErrorCode); |
| 18 } | 18 } |
| 19 } | 19 } |
| OLD | NEW |