oops! forgot to add this files
authorCésar Natarén <cesar@mono-cvs.ximian.com>
Tue, 22 Jul 2003 18:18:51 +0000 (18:18 -0000)
committerCésar Natarén <cesar@mono-cvs.ximian.com>
Tue, 22 Jul 2003 18:18:51 +0000 (18:18 -0000)
svn path=/trunk/mcs/; revision=16531

mcs/class/Microsoft.JScript/Microsoft.JScript/CmdLineError.cs [new file with mode: 0644]
mcs/class/Microsoft.JScript/Microsoft.JScript/JSError.cs [new file with mode: 0644]

diff --git a/mcs/class/Microsoft.JScript/Microsoft.JScript/CmdLineError.cs b/mcs/class/Microsoft.JScript/Microsoft.JScript/CmdLineError.cs
new file mode 100644 (file)
index 0000000..227e930
--- /dev/null
@@ -0,0 +1,54 @@
+//
+// CmdLineError.cs:
+//
+// Author:
+//     Cesar Lopez Nataren (cesar@ciencias.unam.mx)
+//
+// (C) 2003, Cesar Lopez Nataren
+//
+
+namespace Microsoft.JScript
+{
+       public enum CmdLineError {
+               AssemblyNotFound,
+               CannotCreateEngine,
+               CompilerConstant,
+               DuplicateFileAsSourceAndAssembly,
+               DuplicateResourceFile,
+               DuplicateResourceName,
+               DuplicateSourceFile,
+               ErrorSavingCompiledState,
+               IncompatibleTargets,
+               InvalidAssembly,
+               InvalidCharacters,
+               InvalidCodePage,
+               InvalidDefinition,
+               InvalidForCompilerOptions,
+               InvalidLocaleID,
+               InvalidTarget,
+               InvalidSourceFile,
+               InvalidVersion,
+               InvalidWarningLevel,
+               ManagedResourceNotFound,
+               MissingDefineArgument,
+               MissingExtension,
+               MissingLibArgument,
+               MissingReference,
+               MissingVersionInfo,
+               MultipleOutputNames,
+               MultipleTargets,
+               MultipleWin32Resources,
+               NestedResponseFiles,
+               NoCodePage,
+               NoFileName,
+               NoInputSourcesSpecified,
+               NoLocaleID,
+               NoWarningLevel,
+               ResourceNotFound,
+               SourceFileTooBig,
+               SourceNotFound,
+               UnknownOption,
+               Unspecified,
+               LAST
+       }
+}
diff --git a/mcs/class/Microsoft.JScript/Microsoft.JScript/JSError.cs b/mcs/class/Microsoft.JScript/Microsoft.JScript/JSError.cs
new file mode 100644 (file)
index 0000000..d83ec19
--- /dev/null
@@ -0,0 +1,256 @@
+//
+// JSError.cs:
+//
+// Author:
+//     Cesar Lopez Nataren (cesar@ciencias.unam.mx)
+//
+// (C) 2003, Cesar Lopez Nataren
+//
+
+namespace Microsoft.JScript
+{
+       public enum JSError {
+               NoError,
+               InvalidCall,
+               OutOfMemory,
+               TypeMismatch,
+               OutOfStack,
+               InternalError,
+               FileNotFound,
+               NeedObject,
+               CantCreateObject,
+               OLENoPropOrMethod,
+               ActionNotSupported,
+               NotCollection,
+
+
+               SyntaxError,
+               NoColon,
+               NoSemicolon,
+               NoLeftParen,
+               NoRightParen,
+               NoRightBracket,
+               NoLeftCurly,
+               NoRightCurly,
+               NoIdentifier,
+               NoEqual,
+               IllegalChar,
+               UnterminatedString,
+               NoCommentEnd,
+               BadReturn,
+               BadBreak,
+               BadContinue,
+               BadHexDigit,
+               NoWhile,
+               BadLabel,
+               NoLabel,
+               DupDefault,
+               NoMemberIdentifier,
+               NoCcEnd,
+               CcOff,
+               NotConst,
+               NoAt,
+               NoCatch,
+               InvalidElse,
+               NoComma,
+               DupVisibility,
+               IllegalVisibility,
+               BadSwitch,
+               CcInvalidEnd,
+               CcInvalidElse,
+               CcInvalidElif,
+               ErrEOF,
+               IncompatibleVisibility,
+               ClassNotAllowed,
+               NeedCompileTimeConstant,
+               DuplicateName,
+               NeedType,
+               NotInsideClass,
+               InvalidPositionDirective,
+               MustBeEOL,
+               WrongDirective,
+               CannotNestPositionDirective,
+               CircularDefinition,
+               Deprecated,
+               IllegalUseOfThis,
+               NotAccessible,
+               CannotUseNameOfClass,
+               MustImplementMethod,
+               NeedInterface,
+               UnreachableCatch,
+               TypeCannotBeExtended,
+               UndeclaredVariable,
+               VariableLeftUninitialized,
+               KeywordUsedAsIdentifier,
+               NotAllowedInSuperConstructorCall,
+               NotMeantToBeCalledDirectly,
+               GetAndSetAreInconsistent,
+               InvalidCustomAttribute,
+               InvalidCustomAttributeArgument,
+               InvalidCustomAttributeClassOrCtor,
+               TooManyParameters,
+               AmbiguousBindingBecauseOfWith,
+               AmbiguousBindingBecauseOfEval,
+               NoSuchMember,
+               ItemNotAllowedOnExpandoClass,
+               MethodNotAllowedOnExpandoClass,
+               MethodClashOnExpandoSuperClass,
+               BaseClassIsExpandoAlready,
+               AbstractCannotBePrivate,
+               NotIndexable,
+               StaticMissingInStaticInit,
+               MissingConstructForAttributes,
+               OnlyClassesAllowed,
+               ExpandoClassShouldNotImpleEnumerable,
+               NonCLSCompliantMember,
+               NotDeletable,
+               PackageExpected,
+               UselessExpression,
+               HidesParentMember,
+               CannotChangeVisibility,
+               HidesAbstractInBase,
+               NewNotSpecifiedInMethodDeclaration,
+               MethodInBaseIsNotVirtual,
+               NoMethodInBaseToNew,
+               DifferentReturnTypeFromBase,
+               ClashWithProperty,
+               OverrideAndHideUsedTogether,
+               InvalidLanguageOption,
+               NoMethodInBaseToOverride,
+               NotValidForConstructor,
+               CannotReturnValueFromVoidFunction,
+               AmbiguousMatch,
+               AmbiguousConstructorCall,
+               SuperClassConstructorNotAccessible,
+               OctalLiteralsAreDeprecated,
+               VariableMightBeUnitialized,
+               NotOKToCallSuper,
+               IllegalUseOfSuper,
+               BadWayToLeaveFinally,
+               NoCommaOrTypeDefinitionError,
+               AbstractWithBody,
+               NoRightParenOrComma,
+               NoRightBracketOrComma,
+               ExpressionExpected,
+               UnexpectedSemicolon,
+               TooManyTokensSkipped,
+               BadVariableDeclaration,
+               BadFunctionDeclaration,
+               BadPropertyDeclaration,
+               DoesNotHaveAnAddress,
+               TooFewParameters,
+               UselessAssignment,
+               SuspectAssignment,
+               SuspectSemicolon,
+               ImpossibleConversion,
+               FinalPrecludesAbstract,
+               NeedInstance,
+               CannotBeAbstract,
+               InvalidBaseTypeForEnum,
+               CannotInstantiateAbstractClass,
+               ArrayMayBeCopied,
+               AbstractCannotBeStatic,
+               StaticIsAlreadyFinal,
+               StaticMethodsCannotOverride,
+               StaticMethodsCannotHide,
+               ExpandoPrecludesOverride,
+               IllegalParamArrayAttribute,
+               ExpandoPrecludesAbstract,
+               ShouldBeAbstract,
+               BadModifierInInterface,
+               VarIllegalInInterface,
+               InterfaceIllegalInInterface,
+               NoVarInEnum,
+               InvalidImport,
+               EnumNotAllowed,
+               InvalidCustomAttributeTarget,
+               PackageInWrongContext,
+               ConstructorMayNotHaveReturnType,
+               OnlyClassesAndPackagesAllowed,
+               InvalidDebugDirective,
+               CustomAttributeUsedMoreThanOnce,
+               NestedInstanceTypeCannotBeExtendedByStatic,
+               PropertyLevelAttributesMustBeOnGetter,
+               BadThrow,
+               ParamListNotLast,
+               NoSuchType,
+               BadOctalLiteral,
+               InstanceNotAccessibleFromStatic,
+               StaticRequiresTypeName,
+               NonStaticWithTypeName,
+               NoSuchStaticMember,
+               SuspectLoopCondition,
+               ExpectedAssembly,
+               AssemblyAttributesMustBeGlobal,
+               ExpandoPrecludesStatic,
+               DuplicateMethod,
+               NotAnExpandoFunction,
+               NotValidVersionString,
+               ExecutablesCannotBeLocalized,
+               StringConcatIsSlow,
+               CcInvalidInDebugger,
+               ExpandoMustBePublic,
+               DelegatesShouldNotBeExplicitlyConstructed,
+               ImplicitlyReferencedAssemblyNotFound,
+               PossibleBadConversion,
+               PossibleBadConversionFromString,
+               InvalidResource,
+               WrongUseOfAddressOf,
+               NonCLSCompliantType,
+               MemberTypeCLSCompliantMismatch,
+               TypeAssemblyCLSCompliantMismatch,
+
+
+               CantAssignThis,
+               NumberExpected,
+               FunctionExpected,
+               CannotAssignToFunctionResult,
+               StringExpected,
+               DateExpected,
+               ObjectExpected,
+               IllegalAssignment,
+               UndefinedIdentifier,
+               BooleanExpected,
+               VBArrayExpected,
+               EnumeratorExpected,
+               RegExpExpected,
+               RegExpSyntax,
+               UncaughtException,
+               InvalidPrototype,
+               URIEncodeError,
+               URIDecodeError,
+               FractionOutOfRange,
+               PrecisionOutOfRange,
+               ArrayLengthConstructIncorrect,
+               ArrayLengthAssignIncorrect,
+               NeedArrayObject,
+               NoConstructor,
+               IllegalEval,
+               NotYetImplemented,
+               MustProvideNameForNamedParameter,
+               DuplicateNamedParameter,
+               MissingNameParameter,
+               MoreNamedParametersThanArguments,
+               NonSupportedInDebugger,
+               AssignmentToReadOnly,
+               WriteOnlyProperty,
+               IncorrectNumberOfIndices,
+               RefParamsNonSupportedInDebugger,
+               CannotCallSecurityMethodLateBound,
+               CannotUseStaticSecurityAttribute,
+
+
+               FuncEvalAborted,
+               FuncEvalTimedout,
+               FuncEvalThreadSuspended,
+               FuncEvalThreadSleepWaitJoin,
+               FuncEvalBadThreadState,
+               FuncEvalBadThreadNotStarted,
+               NoFuncEvalAllowed,
+               FuncEvalBadLocation,
+               FuncEvalWebMethod,
+               StaticVarNotAvailable,
+               TypeObjectNotAvailable,
+               ExceptionFromHResult
+       }
+}