Skip to content

Commit 453425d

Browse files
Fix typo: extra space in error message
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent ea739f8 commit 453425d

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed
Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
/*----------------------------------------------------------
2-
This Source Code Form is subject to the terms of the
3-
Mozilla Public License, v.2.0. If a copy of the MPL
4-
was not distributed with this file, You can obtain one
5-
at http://mozilla.org/MPL/2.0/.
6-
----------------------------------------------------------*/
7-
using System;
8-
using OneScript.Exceptions;
9-
using OneScript.Localization;
10-
11-
namespace OneScript.StandardLibrary.Collections.Exceptions
12-
{
13-
public class ColumnException : RuntimeException
14-
{
15-
public ColumnException(BilingualString message, Exception innerException) : base(message,
16-
innerException)
17-
{
18-
}
19-
20-
public ColumnException(BilingualString message) : base(message)
21-
{
22-
}
23-
24-
public static ColumnException WrongColumnName()
25-
{
26-
return new ColumnException(new BilingualString(
27-
"Неверное имя колонки",
28-
"Wrong column name"));
1+
/*----------------------------------------------------------
2+
This Source Code Form is subject to the terms of the
3+
Mozilla Public License, v.2.0. If a copy of the MPL
4+
was not distributed with this file, You can obtain one
5+
at http://mozilla.org/MPL/2.0/.
6+
----------------------------------------------------------*/
7+
using System;
8+
using OneScript.Exceptions;
9+
using OneScript.Localization;
10+
11+
namespace OneScript.StandardLibrary.Collections.Exceptions
12+
{
13+
public class ColumnException : RuntimeException
14+
{
15+
public ColumnException(BilingualString message, Exception innerException) : base(message,
16+
innerException)
17+
{
18+
}
19+
20+
public ColumnException(BilingualString message) : base(message)
21+
{
2922
}
3023

31-
public static ColumnException WrongColumnName(string columnName)
32-
{
33-
return new ColumnException(new BilingualString(
34-
$"Неверное имя колонки '{columnName}'",
24+
public static ColumnException WrongColumnName()
25+
{
26+
return new ColumnException(new BilingualString(
27+
"Неверное имя колонки",
28+
"Wrong column name"));
29+
}
30+
31+
public static ColumnException WrongColumnName(string columnName)
32+
{
33+
return new ColumnException(new BilingualString(
34+
$"Неверное имя колонки '{columnName}'",
3535
$"Wrong column name '{columnName}'"));
3636
}
3737

38-
public static ColumnException DuplicatedColumnName(string columnName)
39-
{
40-
return new ColumnException(new BilingualString(
41-
$"Колонка '{columnName}' уже есть",
42-
$"Column '{columnName}' already exists"));
38+
public static ColumnException DuplicatedColumnName(string columnName)
39+
{
40+
return new ColumnException(new BilingualString(
41+
$"Колонка '{columnName}' уже есть",
42+
$"Column '{columnName}' already exists"));
4343
}
4444

4545

46-
public static ColumnException ColumnsMixed(string columnName)
47-
{
48-
return new ColumnException(new BilingualString(
49-
$"Колонка '{columnName}' не может одновременно быть колонкой группировки и колонкой суммирования",
46+
public static ColumnException ColumnsMixed(string columnName)
47+
{
48+
return new ColumnException(new BilingualString(
49+
$"Колонка '{columnName}' не может одновременно быть колонкой группировки и колонкой суммирования",
5050
$"Column '{columnName}' cannot be both grouping column and summation column"));
51-
}
51+
}
5252

53-
}
53+
}
5454
}

0 commit comments

Comments
 (0)