(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / Microsoft.JScript / Microsoft.JScript / JSError.cs
blobb2ce032e54d7278a98a642276c32a59bc56454a1
1 //
2 // JSError.cs:
3 //
4 // Author:
5 // Cesar Lopez Nataren (cesar@ciencias.unam.mx)
6 //
7 // (C) 2003, Cesar Lopez Nataren
8 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 //
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 //
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 namespace Microsoft.JScript.Tmp
33 public enum JSError {
34 NoError,
35 InvalidCall,
36 OutOfMemory,
37 TypeMismatch,
38 OutOfStack,
39 InternalError,
40 FileNotFound,
41 NeedObject,
42 CantCreateObject,
43 OLENoPropOrMethod,
44 ActionNotSupported,
45 NotCollection,
48 SyntaxError,
49 NoColon,
50 NoSemicolon,
51 NoLeftParen,
52 NoRightParen,
53 NoRightBracket,
54 NoLeftCurly,
55 NoRightCurly,
56 NoIdentifier,
57 NoEqual,
58 IllegalChar,
59 UnterminatedString,
60 NoCommentEnd,
61 BadReturn,
62 BadBreak,
63 BadContinue,
64 BadHexDigit,
65 NoWhile,
66 BadLabel,
67 NoLabel,
68 DupDefault,
69 NoMemberIdentifier,
70 NoCcEnd,
71 CcOff,
72 NotConst,
73 NoAt,
74 NoCatch,
75 InvalidElse,
76 NoComma,
77 DupVisibility,
78 IllegalVisibility,
79 BadSwitch,
80 CcInvalidEnd,
81 CcInvalidElse,
82 CcInvalidElif,
83 ErrEOF,
84 IncompatibleVisibility,
85 ClassNotAllowed,
86 NeedCompileTimeConstant,
87 DuplicateName,
88 NeedType,
89 NotInsideClass,
90 InvalidPositionDirective,
91 MustBeEOL,
92 WrongDirective,
93 CannotNestPositionDirective,
94 CircularDefinition,
95 Deprecated,
96 IllegalUseOfThis,
97 NotAccessible,
98 CannotUseNameOfClass,
99 MustImplementMethod,
100 NeedInterface,
101 UnreachableCatch,
102 TypeCannotBeExtended,
103 UndeclaredVariable,
104 VariableLeftUninitialized,
105 KeywordUsedAsIdentifier,
106 NotAllowedInSuperConstructorCall,
107 NotMeantToBeCalledDirectly,
108 GetAndSetAreInconsistent,
109 InvalidCustomAttribute,
110 InvalidCustomAttributeArgument,
111 InvalidCustomAttributeClassOrCtor,
112 TooManyParameters,
113 AmbiguousBindingBecauseOfWith,
114 AmbiguousBindingBecauseOfEval,
115 NoSuchMember,
116 ItemNotAllowedOnExpandoClass,
117 MethodNotAllowedOnExpandoClass,
118 MethodClashOnExpandoSuperClass,
119 BaseClassIsExpandoAlready,
120 AbstractCannotBePrivate,
121 NotIndexable,
122 StaticMissingInStaticInit,
123 MissingConstructForAttributes,
124 OnlyClassesAllowed,
125 ExpandoClassShouldNotImpleEnumerable,
126 NonCLSCompliantMember,
127 NotDeletable,
128 PackageExpected,
129 UselessExpression,
130 HidesParentMember,
131 CannotChangeVisibility,
132 HidesAbstractInBase,
133 NewNotSpecifiedInMethodDeclaration,
134 MethodInBaseIsNotVirtual,
135 NoMethodInBaseToNew,
136 DifferentReturnTypeFromBase,
137 ClashWithProperty,
138 OverrideAndHideUsedTogether,
139 InvalidLanguageOption,
140 NoMethodInBaseToOverride,
141 NotValidForConstructor,
142 CannotReturnValueFromVoidFunction,
143 AmbiguousMatch,
144 AmbiguousConstructorCall,
145 SuperClassConstructorNotAccessible,
146 OctalLiteralsAreDeprecated,
147 VariableMightBeUnitialized,
148 NotOKToCallSuper,
149 IllegalUseOfSuper,
150 BadWayToLeaveFinally,
151 NoCommaOrTypeDefinitionError,
152 AbstractWithBody,
153 NoRightParenOrComma,
154 NoRightBracketOrComma,
155 ExpressionExpected,
156 UnexpectedSemicolon,
157 TooManyTokensSkipped,
158 BadVariableDeclaration,
159 BadFunctionDeclaration,
160 BadPropertyDeclaration,
161 DoesNotHaveAnAddress,
162 TooFewParameters,
163 UselessAssignment,
164 SuspectAssignment,
165 SuspectSemicolon,
166 ImpossibleConversion,
167 FinalPrecludesAbstract,
168 NeedInstance,
169 CannotBeAbstract,
170 InvalidBaseTypeForEnum,
171 CannotInstantiateAbstractClass,
172 ArrayMayBeCopied,
173 AbstractCannotBeStatic,
174 StaticIsAlreadyFinal,
175 StaticMethodsCannotOverride,
176 StaticMethodsCannotHide,
177 ExpandoPrecludesOverride,
178 IllegalParamArrayAttribute,
179 ExpandoPrecludesAbstract,
180 ShouldBeAbstract,
181 BadModifierInInterface,
182 VarIllegalInInterface,
183 InterfaceIllegalInInterface,
184 NoVarInEnum,
185 InvalidImport,
186 EnumNotAllowed,
187 InvalidCustomAttributeTarget,
188 PackageInWrongContext,
189 ConstructorMayNotHaveReturnType,
190 OnlyClassesAndPackagesAllowed,
191 InvalidDebugDirective,
192 CustomAttributeUsedMoreThanOnce,
193 NestedInstanceTypeCannotBeExtendedByStatic,
194 PropertyLevelAttributesMustBeOnGetter,
195 BadThrow,
196 ParamListNotLast,
197 NoSuchType,
198 BadOctalLiteral,
199 InstanceNotAccessibleFromStatic,
200 StaticRequiresTypeName,
201 NonStaticWithTypeName,
202 NoSuchStaticMember,
203 SuspectLoopCondition,
204 ExpectedAssembly,
205 AssemblyAttributesMustBeGlobal,
206 ExpandoPrecludesStatic,
207 DuplicateMethod,
208 NotAnExpandoFunction,
209 NotValidVersionString,
210 ExecutablesCannotBeLocalized,
211 StringConcatIsSlow,
212 CcInvalidInDebugger,
213 ExpandoMustBePublic,
214 DelegatesShouldNotBeExplicitlyConstructed,
215 ImplicitlyReferencedAssemblyNotFound,
216 PossibleBadConversion,
217 PossibleBadConversionFromString,
218 InvalidResource,
219 WrongUseOfAddressOf,
220 NonCLSCompliantType,
221 MemberTypeCLSCompliantMismatch,
222 TypeAssemblyCLSCompliantMismatch,
225 CantAssignThis,
226 NumberExpected,
227 FunctionExpected,
228 CannotAssignToFunctionResult,
229 StringExpected,
230 DateExpected,
231 ObjectExpected,
232 IllegalAssignment,
233 UndefinedIdentifier,
234 BooleanExpected,
235 VBArrayExpected,
236 EnumeratorExpected,
237 RegExpExpected,
238 RegExpSyntax,
239 UncaughtException,
240 InvalidPrototype,
241 URIEncodeError,
242 URIDecodeError,
243 FractionOutOfRange,
244 PrecisionOutOfRange,
245 ArrayLengthConstructIncorrect,
246 ArrayLengthAssignIncorrect,
247 NeedArrayObject,
248 NoConstructor,
249 IllegalEval,
250 NotYetImplemented,
251 MustProvideNameForNamedParameter,
252 DuplicateNamedParameter,
253 MissingNameParameter,
254 MoreNamedParametersThanArguments,
255 NonSupportedInDebugger,
256 AssignmentToReadOnly,
257 WriteOnlyProperty,
258 IncorrectNumberOfIndices,
259 RefParamsNonSupportedInDebugger,
260 CannotCallSecurityMethodLateBound,
261 CannotUseStaticSecurityAttribute,
264 FuncEvalAborted,
265 FuncEvalTimedout,
266 FuncEvalThreadSuspended,
267 FuncEvalThreadSleepWaitJoin,
268 FuncEvalBadThreadState,
269 FuncEvalBadThreadNotStarted,
270 NoFuncEvalAllowed,
271 FuncEvalBadLocation,
272 FuncEvalWebMethod,
273 StaticVarNotAvailable,
274 TypeObjectNotAvailable,
275 ExceptionFromHResult