Skip to content

Commit 1843241

Browse files
committed
Changing exception -> error
1 parent 8155c5b commit 1843241

16 files changed

Lines changed: 16 additions & 16 deletions

query-languages/m/custom-date-and-time-format-strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ There are two ways to indicate that characters are to be interpreted as literal
12291229

12301230
### Using single custom format specifiers
12311231

1232-
A custom date and time format string consists of two or more characters. Date and time formatting methods interpret any single-character string as a standard date and time format string. If they don't recognize the character as a valid format specifier, they throw an expression error. For example, a format string that consists only of the specifier "h" is interpreted as a standard date and time format string. However, in this particular case, an exception is thrown because there is no "h" standard date and time format specifier.
1232+
A custom date and time format string consists of two or more characters. Date and time formatting methods interpret any single-character string as a standard date and time format string. If they don't recognize the character as a valid format specifier, they throw an expression error. For example, a format string that consists only of the specifier "h" is interpreted as a standard date and time format string. However, in this particular case, an error is raised because there is no "h" standard date and time format specifier.
12331233

12341234
To use any of the custom date and time format specifiers as the only specifier in a format string (that is, to use the "d", "f", "F", "g", "h", "H", "K", "m", "M", "s", "t", "y", "z", ":", or "/" custom format specifier by itself), include a space before or after the specifier, or include a percent ("%") format specifier before the single custom date and time specifier.
12351235

query-languages/m/datetimezone-switchzone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ DateTimeZone.SwitchZone(<b>dateTimeZone</b> as nullable datetimezone, <b>timezon
1313

1414
## About
1515

16-
Changes timezone information to on the datetimezone value `dateTimeZone` to the new timezone information provided by `timezoneHours` and optionally `timezoneMinutes`. If `dateTimeZone` does not have a timezone component, an exception is thrown.
16+
Changes timezone information to on the datetimezone value `dateTimeZone` to the new timezone information provided by `timezoneHours` and optionally `timezoneMinutes`. If `dateTimeZone` does not have a timezone component, an error is raised.
1717

1818
## Example 1
1919

query-languages/m/list-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ These functions create and manipulate list values.
3535
|[List.Positions](list-positions.md)|Returns a list of offsets for the input.|
3636
|[List.Range](list-range.md)|Returns a subset of the list beginning at an offset.|
3737
|[List.Select](list-select.md)|Returns a list of values that match the condition.|
38-
|[List.Single](list-single.md)|Returns the one list item for a list of length one, otherwise throws an exception.|
38+
|[List.Single](list-single.md)|Returns the one list item for a list of length one, otherwise raises an error.|
3939
|[List.SingleOrDefault](list-singleordefault.md)|Returns the one list item for a list of length one and the default value for an empty list.|
4040
|[List.Skip](list-skip.md)|Returns a list that skips the specified number of elements at the beginning of the list.|
4141

query-languages/m/list-lastn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ List.LastN(<b>list</b> as list, optional <b>countOrCondition</b> as any) as any
1313

1414
## About
1515

16-
Returns the last item of the list `list`. If the list is empty, an exception is thrown. This function takes an optional parameter, `countOrCondition`, to support gathering multiple items or filtering items. `countOrCondition` can be specified in three ways:
16+
Returns the last item of the list `list`. If the list is empty, an error is raised. This function takes an optional parameter, `countOrCondition`, to support gathering multiple items or filtering items. `countOrCondition` can be specified in three ways:
1717

1818
* If a number is specified, up to that many items are returned.
1919
* If a condition is specified, all items are returned that initially meet the condition, starting at the end of the list. Once an item fails the condition, no further items are considered.

query-languages/m/list-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ List.Mode(<b>list</b> as list, optional <b>equationCriteria</b> as any) as any
1313

1414
## About
1515

16-
Returns the item that appears most frequently in `list`. If the list is empty an exception is thrown. If multiple items appear with the same maximum frequency, the last one is chosen. An optional comparison criteria value, `equationCriteria`, can be specified to control equality testing.
16+
Returns the item that appears most frequently in `list`. If the list is empty an error is raised. If multiple items appear with the same maximum frequency, the last one is chosen. An optional comparison criteria value, `equationCriteria`, can be specified to control equality testing.
1717

1818
## Example 1
1919

query-languages/m/list-modes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ List.Modes(<b>list</b> as list, optional <b>equationCriteria</b> as any) as list
1313

1414
## About
1515

16-
Returns the items that appear most frequently in `list`. If the list is empty an exception is thrown. If multiple items appear with the same maximum frequency, all of them are returned. An optional comparison criteria value, `equationCriteria`, can be specified to control equality testing.
16+
Returns the items that appear most frequently in `list`. If the list is empty an error is raised. If multiple items appear with the same maximum frequency, all of them are returned. An optional comparison criteria value, `equationCriteria`, can be specified to control equality testing.
1717

1818
## Example 1
1919

query-languages/m/list-single.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ List.Single(<b>list</b> as list) as any
1313

1414
## About
1515

16-
If there is only one item in the list `list`, returns that item. If there is more than one item or the list is empty, the function throws an exception.
16+
If there is only one item in the list `list`, returns that item. If there is more than one item or the list is empty, the function raises an error.
1717

1818
## Example 1
1919

query-languages/m/list-standarddeviation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ List.StandardDeviation(<b>numbersList</b> as list) as nullable number
1313

1414
## About
1515

16-
Returns a sample based estimate of the standard deviation of the values in the list, `numbersList`. If `numbersList` is a list of numbers, a number is returned. An exception is thrown on an empty list or a list of items that is not type `number`.
16+
Returns a sample based estimate of the standard deviation of the values in the list, `numbersList`. If `numbersList` is a list of numbers, a number is returned. An error is raised on an empty list or a list of items that is not type `number`.
1717

1818
## Example 1
1919

query-languages/m/logical-fromtext.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Logical.FromText(<b>text</b> as nullable text) as nullable logical
1313

1414
## About
1515

16-
Creates a logical value from the text value `text`, either "true" or "false". If `text` contains a different string, an exception is thrown. The text value `text` is case insensitive.
16+
Creates a logical value from the text value `text`, either "true" or "false". If `text` contains a different string, an error is raised. The text value `text` is case insensitive.
1717

1818
## Example 1
1919

query-languages/m/logical-totext.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Logical.ToText(<b>logicalValue</b> as nullable logical) as nullable text
1313

1414
## About
1515

16-
Creates a text value from the logical value `logicalValue`, either `true` or `false`. If `logicalValue` is not a logical value, an exception is thrown.
16+
Creates a text value from the logical value `logicalValue`, either `true` or `false`. If `logicalValue` is not a logical value, an error is raised.
1717

1818
## Example 1
1919

0 commit comments

Comments
 (0)