1 /*
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.service.credentials;
18 
19 /**
20  * Contains custom error codes to be used internally for various credential
21  * provider error states.
22  *
23  * @hide
24  */
25 public class CredentialProviderErrors {
26     public static final int ERROR_UNKNOWN = 0;
27 
28     /**
29      * For internal use only.
30      * Error code to be used when the provider request times out.
31      *
32      * @hide
33      */
34     public static final int ERROR_TIMEOUT = 1;
35 
36     /**
37      * For internal use only.
38      * Error code to be used when the async task is canceled internally.
39      *
40      * @hide
41      */
42     public static final int ERROR_TASK_CANCELED = 2;
43 
44     /**
45      * For internal use only.
46      * Error code to be used when an exception is received from the provider.
47      *
48      * @hide
49      */
50     public static final int ERROR_PROVIDER_FAILURE = 3;
51 }
52