Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package org.chromium.net; | |
| 6 | |
| 7 /** | |
| 8 * Subclass of {@link UrlRequestException} (through {@link CronetException}) whi ch contains a | |
|
pauljensen
2016/07/01 12:22:02
I don't think we need to mention CronetException..
mgersh
2016/07/01 15:21:15
Done.
| |
| 9 * detailed <a href="https://www.chromium.org/quic">QUIC</a> error code from | |
| 10 * <a href=https://chromium.googlesource.com/chromium/src/+/master/net/quic/quic _protocol.h#503> | |
|
pauljensen
2016/07/01 12:22:02
Line 503 is already incorrect.
I was going to sugg
mgersh
2016/07/01 15:21:15
Huh, cool. Done.
| |
| 11 * this file</a>. | |
| 12 * An instance of QuicException is passed to | |
|
pauljensen
2016/07/01 12:22:02
can this go on prior line?
pauljensen
2016/07/01 12:22:02
QuicException->{@code QuicException}
mgersh
2016/07/01 15:21:15
You mean I can't just solve all my formatting prob
mgersh
2016/07/01 15:21:15
Done.
| |
| 13 * {@link UrlRequest.Callback#onFailed UrlRequest.Callback.onFailed()} when the error code is | |
|
pauljensen
2016/07/01 12:22:02
I'm not sure we should mention UrlRequest here as
mgersh
2016/07/01 15:21:15
Done.
| |
| 14 * {@link UrlRequestException#ERROR_QUIC_PROTOCOL_FAILED | |
| 15 * UrlRequestException.ERROR_QUIC_PROTOCOL_FAILED}. | |
| 16 */ | |
| 17 public class QuicException extends CronetException { | |
| 18 // QUIC detailed error code | |
|
pauljensen
2016/07/01 12:22:02
Remove this comment as it is redundant with the ni
mgersh
2016/07/01 15:21:15
Done. I agree with you that it's weird, I just did
| |
| 19 private final int mQuicDetailedErrorCode; | |
| 20 | |
| 21 /** | |
| 22 * Constructs an exception with a specific error. | |
| 23 * | |
| 24 * @param message explanation of failure. | |
| 25 * @param netErrorCode Error code from | |
| 26 * <a href=https://chromium.googlesource.com/chromium/src/+/master/net/base/ net_error_list.h> | |
| 27 * this list</a>. | |
| 28 * @param quicDetailedErrorCode Detailed <a href="https://www.chromium.org/q uic">QUIC</a> error | |
| 29 * code from | |
| 30 * <a href=https://chromium.googlesource.com/chromium/src/+/master/net/quic/ quic_protocol.h#503> | |
|
pauljensen
2016/07/01 12:22:02
Update URL as per line 10 comment
mgersh
2016/07/01 15:21:15
Done.
| |
| 31 * this file</a>. | |
| 32 */ | |
| 33 public QuicException(String message, int netErrorCode, int quicDetailedError Code) { | |
| 34 super(message, ERROR_QUIC_PROTOCOL_FAILED, netErrorCode); | |
| 35 mQuicDetailedErrorCode = quicDetailedErrorCode; | |
| 36 } | |
| 37 | |
| 38 /** | |
| 39 * Returns the <a href="https://www.chromium.org/quic">QUIC</a> error code, which is a value | |
| 40 * from | |
| 41 * <a href=https://chromium.googlesource.com/chromium/src/+/master/net/quic/ quic_protocol.h> | |
|
pauljensen
2016/07/01 12:22:02
update URL as per line 10 comment
mgersh
2016/07/01 15:21:15
Done.
| |
| 42 * QuicErrorCode</a>. | |
|
pauljensen
2016/07/01 12:22:02
please make this consistent with the other two ref
mgersh
2016/07/01 15:21:15
Done.
| |
| 43 */ | |
| 44 public int getQuicDetailedErrorCode() { | |
| 45 return mQuicDetailedErrorCode; | |
| 46 } | |
| 47 } | |
| OLD | NEW |