OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file intentionally does not have header guards, it's included | 5 // This file intentionally does not have header guards, it's included |
6 // inside a macro to generate enum values. | 6 // inside a macro to generate enum values. |
7 | 7 |
8 // This file contains the list of network errors. | 8 // This file contains the list of network errors. |
9 | 9 |
10 // | 10 // |
11 // Ranges: | 11 // Ranges: |
12 // 0- 99 System related errors | 12 // 0- 99 System related errors |
13 // 100-199 Connection related errors | 13 // 100-199 Connection related errors |
14 // 200-299 Certificate errors | 14 // 200-299 Certificate errors |
15 // 300-399 HTTP errors | 15 // 300-399 HTTP errors |
16 // 400-499 Cache errors | 16 // 400-499 Cache errors |
17 // 500-599 ? | 17 // 500-599 ? |
18 // 600-699 FTP errors | 18 // 600-699 FTP errors |
19 // 700-799 Certificate manager errors | 19 // 700-799 Certificate manager errors |
20 // 800-899 DNS resolver errors | 20 // 800-899 DNS resolver errors |
wtc
2013/11/26 01:47:23
Please document the new error code range here.
Ar
Eran M. (Google)
2013/11/26 14:45:53
As suggested, added it to the 200-299 certificate
| |
21 | 21 |
22 // An asynchronous IO operation is not yet complete. This usually does not | 22 // An asynchronous IO operation is not yet complete. This usually does not |
23 // indicate a fatal error. Typically this error will be generated as a | 23 // indicate a fatal error. Typically this error will be generated as a |
24 // notification to wait for some external notification that the IO operation | 24 // notification to wait for some external notification that the IO operation |
25 // finally completed. | 25 // finally completed. |
26 NET_ERROR(IO_PENDING, -1) | 26 NET_ERROR(IO_PENDING, -1) |
27 | 27 |
28 // A generic failure occurred. | 28 // A generic failure occurred. |
29 NET_ERROR(FAILED, -2) | 29 NET_ERROR(FAILED, -2) |
30 | 30 |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
701 NET_ERROR(DNS_TIMED_OUT, -803) | 701 NET_ERROR(DNS_TIMED_OUT, -803) |
702 | 702 |
703 // The entry was not found in cache, for cache-only lookups. | 703 // The entry was not found in cache, for cache-only lookups. |
704 NET_ERROR(DNS_CACHE_MISS, -804) | 704 NET_ERROR(DNS_CACHE_MISS, -804) |
705 | 705 |
706 // Suffix search list rules prevent resolution of the given host name. | 706 // Suffix search list rules prevent resolution of the given host name. |
707 NET_ERROR(DNS_SEARCH_EMPTY, -805) | 707 NET_ERROR(DNS_SEARCH_EMPTY, -805) |
708 | 708 |
709 // Failed to sort addresses according to RFC3484. | 709 // Failed to sort addresses according to RFC3484. |
710 NET_ERROR(DNS_SORT_ERROR, -806) | 710 NET_ERROR(DNS_SORT_ERROR, -806) |
711 | |
712 // Certificate Transparency-related errors | |
713 | |
714 // No Signed Certificate Timestamps present for | |
715 // a certificate. | |
wtc
2013/11/26 01:47:23
This should fit on the previous line.
Eran M. (Google)
2013/11/26 14:45:53
Removed entirely.
| |
716 NET_ERROR(NO_SCTS_PRESENT, -900) | |
717 | |
718 // Serialization of the Precertificate LogEntry or X.509 LogEntry failed | |
wtc
2013/11/26 01:47:23
A period (.) is missing at the end of this sentenc
Eran M. (Google)
2013/11/26 14:45:53
Done.
| |
719 // That means that there were no embedded SCTs *and* the DER encoding of the | |
720 // certificate could not be created, which is surprising - as CT checks are | |
721 // only performed after SCTs have been validated. | |
722 // not be created. | |
wtc
2013/11/26 01:47:23
Delete this line?
Eran M. (Google)
2013/11/26 14:45:53
Done.
| |
723 NET_ERROR(CT_LOG_ENTRY_CREATION_FAILED, -901) | |
724 | |
725 // All SCTs are from unknown logs | |
726 NET_ERROR(NO_SCTS_FROM_KNOWN_LOGS, -902) | |
727 | |
728 // SCT(s) were present but failed to verify - this could indicate an attack | |
729 // or corrupted SCTs. | |
730 NET_ERROR(NO_SCTS_VERIFIED_OK, -903) | |
OLD | NEW |