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