Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ExprException.cs
Go to the documentation of this file.
2
3namespace System.Data;
4
5internal sealed class ExprException
6{
7 private static OverflowException _Overflow(string error)
8 {
11 return ex;
12 }
13
14 private static InvalidExpressionException _Expr(string error)
15 {
18 return ex;
19 }
20
21 private static SyntaxErrorException _Syntax(string error)
22 {
25 return ex;
26 }
27
28 private static EvaluateException _Eval(string error)
29 {
32 return ex;
33 }
34
35 private static EvaluateException _Eval(string error, Exception innerException)
36 {
39 return ex;
40 }
41
46
47 public static Exception NYI(string moreinfo)
48 {
49 string error = System.SR.Format(System.SR.Expr_NYI, moreinfo);
50 return _Expr(error);
51 }
52
57
58 public static Exception MissingOperator(string token)
59 {
61 }
62
63 public static Exception TypeMismatch(string expr)
64 {
66 }
67
68 public static Exception FunctionArgumentOutOfRange(string arg, string func)
69 {
71 }
72
77
78 public static Exception UnboundName(string name)
79 {
81 }
82
83 public static Exception InvalidString(string str)
84 {
86 }
87
88 public static Exception UndefinedFunction(string name)
89 {
91 }
92
93 public static Exception SyntaxError()
94 {
96 }
97
98 public static Exception FunctionArgumentCount(string name)
99 {
101 }
102
104 {
106 }
107
108 public static Exception UnknownToken(string token, int position)
109 {
110 return _Syntax(System.SR.Format(System.SR.Expr_UnknownToken, token, position.ToString(CultureInfo.InvariantCulture)));
111 }
112
113 public static Exception UnknownToken(Tokens tokExpected, Tokens tokCurr, int position)
114 {
115 return _Syntax(System.SR.Format(System.SR.Expr_UnknownToken1, tokExpected.ToString(), tokCurr.ToString(), position.ToString(CultureInfo.InvariantCulture)));
116 }
117
118 public static Exception DatatypeConvertion(Type type1, Type type2)
119 {
121 }
122
123 public static Exception DatavalueConvertion(object value, Type type, Exception innerException)
124 {
125 return _Eval(System.SR.Format(System.SR.Expr_DatavalueConvertion, value.ToString(), type.ToString()), innerException);
126 }
127
128 public static Exception InvalidName(string name)
129 {
131 }
132
133 public static Exception InvalidDate(string date)
134 {
136 }
137
139 {
141 }
142
143 public static Exception InvalidPattern(string pat)
144 {
146 }
147
152
153 public static Exception InWithoutList()
154 {
156 }
157
159 {
161 }
162
164 {
166 }
167
168 public static Exception ArgumentType(string function, int arg, Type type)
169 {
170 return _Eval(System.SR.Format(System.SR.Expr_ArgumentType, function, arg.ToString(CultureInfo.InvariantCulture), type));
171 }
172
173 public static Exception ArgumentTypeInteger(string function, int arg)
174 {
176 }
177
178 public static Exception TypeMismatchInBinop(int op, Type type1, Type type2)
179 {
181 }
182
183 public static Exception AmbiguousBinop(int op, Type type1, Type type2)
184 {
185 return _Eval(System.SR.Format(System.SR.Expr_AmbiguousBinop, Operators.ToString(op), type1, type2));
186 }
187
192
193 public static Exception InvalidNameBracketing(string name)
194 {
196 }
197
198 public static Exception MissingOperandBefore(string op)
199 {
201 }
202
207
208 public static Exception UnresolvedRelation(string name, string expr)
209 {
211 }
212
213 internal static EvaluateException BindFailure(string relationName)
214 {
215 return _Eval(System.SR.Format(System.SR.Expr_BindFailure, relationName));
216 }
217
219 {
221 }
222
223 public static Exception AggregateUnbound(string expr)
224 {
226 }
227
228 public static Exception EvalNoContext()
229 {
231 }
232
233 public static Exception ExpressionUnbound(string expr)
234 {
236 }
237
238 public static Exception ComputeNotAggregate(string expr)
239 {
241 }
242
243 public static Exception FilterConvertion(string expr)
244 {
246 }
247
248 public static Exception LookupArgument()
249 {
251 }
252
253 public static Exception InvalidType(string typeName)
254 {
255 return _Eval(System.SR.Format(System.SR.Expr_InvalidType, typeName));
256 }
257
259 {
261 }
262
267
269 {
271 }
272
277
282}
static Exception TraceExceptionAsReturnValue(Exception e)
static Exception _Argument(string error)
static Exception _ArgumentOutOfRange(string paramName, string msg)
static Exception UnresolvedRelation(string name, string expr)
static Exception FilterConvertion(string expr)
static Exception TypeMismatch(string expr)
static Exception LookupArgument()
static OverflowException _Overflow(string error)
static Exception ExpressionUnbound(string expr)
static Exception InvalidDate(string date)
static Exception InWithoutList()
static Exception InvokeArgument()
static Exception InvalidName(string name)
static Exception Overflow(Type type)
static Exception InvalidMinutesArgument()
static Exception InvalidType(string typeName)
static Exception InvalidString(string str)
static Exception ExpressionTooComplex()
static Exception FunctionArgumentOutOfRange(string arg, string func)
static Exception InvalidNameBracketing(string name)
static Exception UnboundName(string name)
static Exception InvalidPattern(string pat)
static Exception UnknownToken(Tokens tokExpected, Tokens tokCurr, int position)
static Exception ArgumentTypeInteger(string function, int arg)
static Exception UnknownToken(string token, int position)
static EvaluateException _Eval(string error)
static Exception FunctionArgumentCount(string name)
static Exception UnsupportedOperator(int op)
static Exception MissingOperator(string token)
static Exception InWithoutParentheses()
static InvalidExpressionException _Expr(string error)
static Exception TypeMismatchInBinop(int op, Type type1, Type type2)
static Exception MissingRightParen()
static Exception ArgumentType(string function, int arg, Type type)
static Exception InvalidHoursArgument()
static EvaluateException _Eval(string error, Exception innerException)
static Exception MismatchKindandTimeSpan()
static Exception NYI(string moreinfo)
static Exception ComputeNotAggregate(string expr)
static Exception MissingOperand(OperatorInfo before)
static Exception UndefinedFunction(string name)
static SyntaxErrorException _Syntax(string error)
static Exception AmbiguousBinop(int op, Type type1, Type type2)
static Exception UnsupportedDataType(Type type)
static Exception DatatypeConvertion(Type type1, Type type2)
static Exception DatavalueConvertion(object value, Type type, Exception innerException)
static Exception InvalidTimeZoneRange()
static Exception MissingOperandBefore(string op)
static EvaluateException BindFailure(string relationName)
static Exception InvalidIsSyntax()
static Exception NonConstantArgument()
static Exception AggregateArgument()
static Exception EvalNoContext()
static Exception SyntaxError()
static Exception TooManyRightParentheses()
static Exception AggregateUnbound(string expr)
static string ToString(int op)
Definition Operators.cs:58
static CultureInfo InvariantCulture
static string Expr_EvalNoContext
Definition SR.cs:180
static string Expr_NYI
Definition SR.cs:118
static string Expr_InvalidType
Definition SR.cs:188
static string Expr_InWithoutParentheses
Definition SR.cs:154
static string Expr_Overflow
Definition SR.cs:198
static string Expr_ComputeNotAggregate
Definition SR.cs:184
static string Expr_UnsupportedOperator
Definition SR.cs:166
static string Expr_InvalidPattern
Definition SR.cs:152
static string Expr_FunctionArgumentCount
Definition SR.cs:134
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Expr_ArgumentType
Definition SR.cs:156
static string Expr_MismatchKindandTimeSpan
Definition SR.cs:208
static string Expr_DatavalueConvertion
Definition SR.cs:144
static string Expr_AggregateArgument
Definition SR.cs:176
static string Expr_AggregateUnbound
Definition SR.cs:178
static string Expr_BindFailure
Definition SR.cs:200
static string Expr_MissingOperandBefore
Definition SR.cs:170
static string Expr_DatatypeConvertion
Definition SR.cs:142
static string Expr_UndefinedFunction
Definition SR.cs:130
static string Expr_InvalidTimeZoneRange
Definition SR.cs:206
static string Expr_UnboundName
Definition SR.cs:126
static string Expr_FilterConvertion
Definition SR.cs:186
static string Expr_IsSyntax
Definition SR.cs:196
static string Expr_MissingRightParen
Definition SR.cs:136
static string Expr_UnknownToken
Definition SR.cs:138
static string Expr_InvalidDate
Definition SR.cs:148
static string Expr_ArgumentTypeInteger
Definition SR.cs:158
static string Expr_InvokeArgument
Definition SR.cs:192
static string Expr_InvalidNameBracketing
Definition SR.cs:168
static string Expr_ExpressionUnbound
Definition SR.cs:182
static string Expr_TypeMismatch
Definition SR.cs:122
static string Expr_ArgumentOutofRange
Definition SR.cs:194
static string Expr_ExpressionTooComplex
Definition SR.cs:124
static string Expr_UnknownToken1
Definition SR.cs:140
static string Expr_UnsupportedType
Definition SR.cs:210
static string Expr_InvalidMinutesArgument
Definition SR.cs:204
static string Expr_MissingOperand
Definition SR.cs:120
static string Expr_NonConstantArgument
Definition SR.cs:150
static string Expr_InWithoutList
Definition SR.cs:164
static string Expr_TypeMismatchInBinop
Definition SR.cs:160
static string Expr_UnresolvedRelation
Definition SR.cs:174
static string Expr_InvalidString
Definition SR.cs:128
static string Expr_InvalidHoursArgument
Definition SR.cs:202
static string Expr_Syntax
Definition SR.cs:132
static string Expr_LookupArgument
Definition SR.cs:190
static string Expr_InvalidName
Definition SR.cs:146
static string Expr_TooManyRightParentheses
Definition SR.cs:172
static string Expr_AmbiguousBinop
Definition SR.cs:162
Definition SR.cs:7
override string ToString()
Definition Type.cs:1108