• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The Chromium Authors
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 android.net.http;
6 
7 import androidx.annotation.Nullable;
8 
9 /**
10  * Subclass of {@link NetworkException} which contains a detailed
11  * <a href="https://www.chromium.org/quic">QUIC</a> error code from <a
12  * href="https://cs.chromium.org/search/?q=symbol:%5CbQuicErrorCode%5Cb"> QuicErrorCode</a>. An
13  * instance of {@code QuicException} is passed to {@code onFailed} callbacks when the error code is
14  * {@link NetworkException#ERROR_QUIC_PROTOCOL_FAILED NetworkException.ERROR_QUIC_PROTOCOL_FAILED}.
15  */
16 public abstract class QuicException extends NetworkException {
17     /**
18      * Constructs an exception that is caused by a QUIC protocol error.
19      *
20      * @param message explanation of failure.
21      * @param cause the cause (which is saved for later retrieval by the {@link
22      * java.io.IOException#getCause getCause()} method). A null value is permitted, and indicates
23      * that the cause is nonexistent or unknown.
24      */
QuicException(@ullable String message, @Nullable Throwable cause)25     protected QuicException(@Nullable String message, @Nullable Throwable cause) {
26         super(message, cause);
27     }
28 }
29