|
4 | 4 | /// <remarks> |
5 | 5 | /// The modules throw what the FSharp.Core function that they mirror throws (ADR 0001, D6). FSharp.Core keeps its resources |
6 | 6 | /// internal, so the texts are copied. The texts of the .NET libraries are for the functions that report a BCL exception |
7 | | -/// under the name of their own parameter. |
| 7 | +/// under the name of their own parameter. Each constant is the text of one resource and its comment names the resource, |
| 8 | +/// so a text that no resource of FSharp.Core or of the .NET libraries holds does not belong here. |
8 | 9 | /// </remarks> |
9 | 10 | module internal FSharp.Collections.Immutable.ErrorStrings |
10 | 11 |
|
| 12 | +/// FSCore.resx, arraysHadDifferentLengths. |
11 | 13 | [<Literal>] |
12 | 14 | let ArraysHadDifferentLengths = "The arrays have different lengths." |
13 | 15 |
|
| 16 | +/// FSCore.resx, indexOutOfBounds. |
14 | 17 | [<Literal>] |
15 | 18 | let IndexOutOfBounds = "The index was outside the range of elements in the list." |
16 | 19 |
|
| 20 | +/// FSCore.resx, arrayWasEmpty. |
17 | 21 | [<Literal>] |
18 | 22 | let InputArrayEmpty = "The input array was empty." |
19 | 23 |
|
| 24 | +/// FSCore.resx, inputListWasEmpty. |
20 | 25 | [<Literal>] |
21 | 26 | let InputListWasEmpty = "The input list was empty." |
22 | 27 |
|
| 28 | +/// FSCore.resx, inputMustBeNonNegative. |
23 | 29 | [<Literal>] |
24 | 30 | let InputMustBeNonNegative = "The input must be non-negative." |
25 | 31 |
|
| 32 | +/// FSCore.resx, inputMustBePositive. |
26 | 33 | [<Literal>] |
27 | 34 | let InputMustBePositive = "The input must be positive." |
28 | 35 |
|
| 36 | +/// FSCore.resx, inputSequenceEmpty. |
29 | 37 | [<Literal>] |
30 | 38 | let InputSequenceEmpty = "The input sequence was empty." |
31 | 39 |
|
| 40 | +/// FSCore.resx, inputSequenceTooLong. |
32 | 41 | [<Literal>] |
33 | 42 | let InputSequenceTooLong = "The input sequence contains more than one element." |
34 | 43 |
|
| 44 | +/// FSCore.resx, keyNotFound. |
35 | 45 | [<Literal>] |
36 | 46 | let KeyNotFound = "The item, key, or index was not found in the collection." |
37 | 47 |
|
| 48 | +/// FSCore.resx, keyNotFoundAlt. |
38 | 49 | [<Literal>] |
39 | 50 | let KeyNotFoundAlt = "An index satisfying the predicate was not found in the collection." |
40 | 51 |
|
| 52 | +/// FSCore.resx, listsHadDifferentLengths. |
41 | 53 | [<Literal>] |
42 | 54 | let ListsHadDifferentLengths = "The lists had different lengths." |
43 | 55 |
|
44 | | -/// The message of the modules written before ADR 0001. |
45 | | -[<Literal>] |
46 | | -let ListsHaveDifferentLengths = "The lists have different lengths." |
47 | | - |
48 | | -/// The message of the .NET libraries for a negative argument, as `Array.BinarySearch` reports it. |
| 56 | +/// System.Private.CoreLib, ArgumentOutOfRange_NeedNonNegNum: the message of the .NET libraries for a negative argument, as |
| 57 | +/// `Array.BinarySearch` reports it. |
49 | 58 | [<Literal>] |
50 | 59 | let NeedNonNegativeNumber = "Non-negative number required." |
51 | 60 |
|
| 61 | +/// FSCore.resx, notAPermutation. |
52 | 62 | [<Literal>] |
53 | 63 | let NotAPermutation = "The function did not compute a permutation." |
54 | 64 |
|
| 65 | +/// FSCore.resx, notEnoughElements. |
55 | 66 | [<Literal>] |
56 | 67 | let NotEnoughElements = "The input sequence has an insufficient number of elements." |
57 | 68 |
|
| 69 | +/// FSCore.resx, outOfRange. |
58 | 70 | [<Literal>] |
59 | 71 | let OutOfRange = "The index is outside the legal range." |
0 commit comments