JSError Enumeration
.NET Framework 2.0
Contains the error codes associated with the JScript error messages.
Namespace: Microsoft.JScript
Assembly: Microsoft.JScript (in microsoft.jscript.dll)
Assembly: Microsoft.JScript (in microsoft.jscript.dll)
'Declaration <ComVisibleAttribute(True)> _ <GuidAttribute("268CA962-2FEF-3152-BA46-E18658B7FA4F")> _ Public Enumeration JSError 'Usage Dim instance As JSError
/** @attribute ComVisibleAttribute(true) */
/** @attribute GuidAttribute("268CA962-2FEF-3152-BA46-E18658B7FA4F") */
public enum JSError
ComVisibleAttribute(true) GuidAttribute("268CA962-2FEF-3152-BA46-E18658B7FA4F") public enum JSError
| Member name | Description | |
|---|---|---|
| AbstractCannotBePrivate | An abstract method cannot be private. | |
| AbstractCannotBeStatic | Static methods cannot be abstract. | |
| AbstractWithBody | An abstract function cannot have body. | |
| ActionNotSupported | Object does not support this action. | |
| AmbiguousBindingBecauseOfEval | The presence of Eval has made the use of this name ambiguous. | |
| AmbiguousBindingBecauseOfWith | The With statement has made the use of this name ambiguous. | |
| AmbiguousConstructorCall | More than one constructor matches this parameter list. | |
| AmbiguousMatch | More than one method or property matches this parameter list. | |
| ArrayLengthAssignIncorrect | Array length must be assigned a finite positive number. | |
| ArrayLengthConstructIncorrect | Array length must be a finite positive integer. | |
| ArrayMayBeCopied | Assigning a JScript array to a System.Array may cause the array to be copied. | |
| AssemblyAttributesMustBeGlobal | Assembly custom attributes may not be part of another construct. | |
| AssignmentToReadOnly | Assignment to read-only field or property. | |
| BadBreak | Cannot have break outside the loop. | |
| BadContinue | Cannot have continue outside the loop. | |
| BadFunctionDeclaration | Possible illegal function declaration, function missing or unrecognized syntax error. | |
| BadHexDigit | Expected hexadecimal digit. | |
| BadLabel | Label redefined. | |
| BadModifierInInterface | This modifier cannot be used on an interface member. | |
| BadOctalLiteral | Malformed octal literal treated as decimal literal. | |
| BadPropertyDeclaration | Illegal properties declaration. The getter must not have arguments and the setter must have one argument. | |
| BadReturn | Return statement outside the function. | |
| BadSwitch | Missing case or default statement. | |
| BadThrow | A throw must have an argument when not inside the catch block of a try statement. | |
| BadVariableDeclaration | Possible illegal variable declaration, var missing, or unrecognized syntax error. | |
| BadWayToLeaveFinally | It is slow and potentially confusing to leave a finally block this way. | |
| BaseClassIsExpandoAlready | A base class is already marked Expando; current specification will be ignored. | |
| BooleanExpected | No Boolean value found. | |
| CannotAssignToFunctionResult | Cannot assign to a function result. | |
| CannotBeAbstract | Cannot be abstract unless class is marked as abstract. | |
| CannotCallSecurityMethodLateBound | The Deny, PermitOnly, and Assert security methods cannot be called using late binding. | |
| CannotChangeVisibility | Cannot change visibility specification of a base method. | |
| CannotInstantiateAbstractClass | It is not possible to construct an instance of an abstract class. | |
| CannotNestPositionDirective | Position directive must be ended before a new one can be started. | |
| CannotReturnValueFromVoidFunction | Cannot return a value from a void function or constructor. | |
| CannotUseNameOfClass | Only a constructor function can have the same name as the class it appears in. | |
| CannotUseStaticSecurityAttribute | JScript does not support static security attributes. | |
| CantAssignThis | Cannot assign to this. | |
| CantCreateObject | Cannot create object. | |
| CcInvalidElif | Unmatched @elif; no @if defined. | |
| CcInvalidElse | Unmatched @else; no @if defined. | |
| CcInvalidEnd | Unmatched @end; no @if defined. | |
| CcInvalidInDebugger | Conditional compilation directives and variables cannot be used in the debugger. | |
| CcOff | Conditional compilation is turned off. | |
| CircularDefinition | Circular definition. | |
| ClashWithProperty | Clashes with property. | |
| ClassNotAllowed | Class definition not allowed in this context. | |
| ConstructorMayNotHaveReturnType | A constructor function may not have a return type. | |
| CustomAttributeUsedMoreThanOnce | This type of attribute must be unique. | |
| DateExpected | Date object expected. | |
| DelegatesShouldNotBeExplicitlyConstructed | Delegates should not be explicitly constructed; simply use the method name. | |
| Deprecated | Deprecated. | |
| DifferentReturnTypeFromBase | Method in base has a different return type. | |
| DoesNotHaveAnAddress | Expression does not have an address. | |
| DupDefault | default can only appear once in a switch statement. | |
| DuplicateMethod | This method has the same name, parameter types, and return type as another method in this class. | |
| DuplicateName | Identifier already in use. | |
| DuplicateNamedParameter | Duplicate named parameter. | |
| DupVisibility | Visibility modifier already defined. | |
| EnumeratorExpected | Enumerator object expected. | |
| EnumNotAllowed | enum definition not allowed in this context. | |
| ErrEOF | Expecting more source characters. | |
| ExceptionFromHResult | Exception from HRESULT. | |
| ExecutablesCannotBeLocalized | Executables cannot be localized; Culture should always be empty. | |
| ExpandoClassShouldNotImpleEnumerable | Expando class should not implement IEnumerable or GetEnumerator. The interface is implicitly defined on Expando classes. | |
| ExpandoMustBePublic | Expando methods must be public. | |
| ExpandoPrecludesAbstract | Expando methods cannot be abstract. | |
| ExpandoPrecludesOverride | Expando methods cannot override base class methods. | |
| ExpandoPrecludesStatic | Expando methods cannot be static. | |
| ExpectedAssembly | Expected assembly. | |
| ExpressionExpected | Expected expression. | |
| FileNotFound | File not found. | |
| FinalPrecludesAbstract | final and abstract cannot be used together. | |
| FractionOutOfRange | The number of fractional digits is out of range. | |
| FuncEvalAborted | Function evaluation was aborted. | |
| FuncEvalBadLocation | Function evaluation cannot be done when stopped at this point in the program. | |
| FuncEvalBadThreadNotStarted | Function evaluation failed and the thread has not started. | |
| FuncEvalBadThreadState | Function evaluation failed, so the thread is in a bad state. | |
| FuncEvalThreadSleepWaitJoin | Function evaluation failed. The thread is sleeping, waiting on an object, or waiting for another thread to finish. | |
| FuncEvalThreadSuspended | Function evaluation failed. The thread is suspended. | |
| FuncEvalTimedout | Function evaluation timed out. | |
| FuncEvalWebMethod | Cannot call a Web method in the debugger. | |
| FunctionExpected | A function was expected. | |
| GetAndSetAreInconsistent | The get and set methods of this property do not match each other. | |
| HidesAbstractInBase | Method hides abstract in a base class. | |
| HidesParentMember | base class already contains a member by this name. | |
| IllegalAssignment | Illegal assignment. | |
| IllegalChar | Invalid character. | |
| IllegalEval | An Eval may not be called via an alias. | |
| IllegalParamArrayAttribute | A variable argument list must be of an array type. | |
| IllegalUseOfSuper | It is not valid to use the super keyword in this way. | |
| IllegalUseOfThis | It is illegal to use this in current context. | |
| IllegalVisibility | Illegal visibility modifier. | |
| ImplicitlyReferencedAssemblyNotFound | A referenced assembly depends on another assembly that is not referenced or could not be found. | |
| ImpossibleConversion | The specified conversion or coercion is not possible. | |
| IncompatibleAssemblyReference | The assembly referenced is incompatible. | |
| IncompatibleVisibility | Incompatible visibility modifier. | |
| IncorrectNumberOfIndices | The number of indices does not match the dimension of the array. | |
| InstanceNotAccessibleFromStatic | A non-static member is not accessible from a static scope. | |
| InterfaceIllegalInInterface | Interfaces cannot be declared in an interface. | |
| InternalError | An internal error has been thrown. | |
| InvalidAssemblyKeyFile | An invalid assembly key file has been used. | |
| InvalidBaseTypeForEnum | enum base type must be a primitive integral type. | |
| InvalidCall | Invalid procedure call or argument. | |
| InvalidCustomAttribute | A custom attribute class must derive from Attribute. | |
| InvalidCustomAttributeArgument | Only primitive types are allowed in a custom attribute constructor arguments list. | |
| InvalidCustomAttributeClassOrCtor | Unknown custom attribute class or constructor. | |
| InvalidCustomAttributeTarget | This attribute is not valid for this type of declaration. | |
| InvalidDebugDirective | Invalid debug directive. | |
| InvalidElse | Unmatched else; no if defined. | |
| InvalidImport | The import statement is not valid in this context. | |
| InvalidLanguageOption | Must specify either "fast" or "versionSafe" language option. | |
| InvalidPositionDirective | An unknown position directive was discovered. | |
| InvalidPrototype | This function does not have a valid prototype object. | |
| InvalidResource | This is not a valid .resources file. | |
| ItemNotAllowedOnExpandoClass | Cannot define the property Item on an Expando class. This Item is reserved for the Expando fields. | |
| KeywordUsedAsIdentifier | "xxxx" is a new reserved word and should not be used as an identifier. | |
| MemberInitializerCannotContainFuncExpr | A member initializer cannot contain a function expression. | |
| MemberTypeCLSCompliantMismatch | Class member cannot be marked CLS compliant because the class is not marked as CLS compliant. | |
| MethodClashOnExpandoSuperClass | A base class defines get_Item or set_Item, and cannot create Expando class. Methods are reserved for the Expando fields. | |
| MethodInBaseIsNotVirtual | A method in a base class that is final or not virtualoverride is ignored. Specify hide. | |
| MethodNotAllowedOnExpandoClass | Cannot define get_Item or set_Item on an Expando class. Methods reserved for the Expando fields. | |
| MissingConstructForAttributes | The list of attributes does not apply to the current context. | |
| MissingNameParameter | The specified named parameter name is not one of the formal parameters. | |
| MoreNamedParametersThanArguments | Too few arguments specified. The number of named parameter names cannot exceed the number of arguments passed in. | |
| MustBeEOL | Directive may not be followed by other code on the same line. | |
| MustImplementMethod | A class must provide implementation. | |
| MustProvideNameForNamedParameter | Cannot provide a null reference (Nothing in Visual Basic) or empty named parameter name. | |
| NeedArrayObject | A "|" is not an array object. Array object expected. | |
| NeedCompileTimeConstant | An expression must be a compile-time constant. | |
| NeedInstance | Must be an instance. | |
| NeedInterface | An interface name was expected. | |
| NeedObject | An object is required. | |
| NeedType | A type name is expected. | |
| NestedInstanceTypeCannotBeExtendedByStatic | A non-static nested type can only be extended by non-static type nested in the same class. | |
| NewNotSpecifiedInMethodDeclaration | A method matches a method in a base class. Must specify override or hide. | |
| NoAt | Expected @. | |
| NoCatch | Expected catch. | |
| NoCcEnd | Expected @end. | |
| NoColon | Expected ":". | |
| NoComma | Expected ",". | |
| NoCommaOrTypeDefinitionError | Expected "," or illegal type declaration; write "<Identifier> : <Type>" not "<Type> <Identifier>". | |
| NoCommentEnd | Comment not terminated. | |
| NoConstructor | No such constructor. | |
| NoEqual | Expected "=". | |
| NoError | 0 | |
| NoFuncEvalAllowed | Function evaluation aborted. To turn on property evaluation, go to the Debugging folder, in the Options dialog box on the Tools menu. | |
| NoIdentifier | Expected identifier. | |
| NoLabel | Label not found. | |
| NoLeftCurly | Expected "{". | |
| NoLeftParen | Expected "(". | |
| NoMemberIdentifier | Expected identifier or string. | |
| NoMethodInBaseToNew | There is no member in a base class to hide. | |
| NoMethodInBaseToOverride | There is no member in a base class to override. | |
| NonCLSCompliantMember | The specified member is not CLS compliant. | |
| NonCLSCompliantType | The specified type is not CLS compliant. | |
| NonClsException | ||
| NonStaticWithTypeName | A non-static member cannot be accessed with the class name. | |
| NonSupportedInDebugger | The expression cannot be evaluated in the debugger. | |
| NoRightBracket | Expected "]". | |
| NoRightBracketOrComma | Expected "," or "]". | |
| NoRightCurly | Expected "}". | |
| NoRightParen | Expected "," or ")". | |
| NoRightParenOrComma | Expected "," or ")". | |
| NoSemicolon | Expected ";". | |
| NoSuchMember | Objects of this type do not have such a member. | |
| NoSuchStaticMember | Type does not have such a static member. | |
| NoSuchType | Type could not be found. Is an assembly reference missing? | |
| NotAccessible | Not accessible from this scope. | |
| NotAllowedInSuperConstructorCall | Not allowed in a call to the super class constructor. | |
| NotAnExpandoFunction | Class members used as constructors should be marked as Expando functions. | |
| NotCollection | This object is not a collection. | |
| NotConst | Expected constant. | |
| NotDeletable | "xxxx" cannot be deleted. | |
| NotIndexable | Objects of this type are not indexable. | |
| NotInsideClass | Only valid inside a class definition. | |
| NotMeantToBeCalledDirectly | This method is not meant to be called directly. It is probably part of a property definition. | |
| NotOKToCallSuper | It is not valid to call a super constructor from this location. | |
| NotValidForConstructor | Not valid for a constructor. | |
| NotValidVersionString | Not a valid version string. | |
| NotYetImplemented | Not yet implemented. | |
| NoVarInEnum | enum member declarations should not use the var keyword. | |
| NoWhile | Expected while. | |
| NumberExpected | Expected a number. | |
| ObjectExpected | Expected an object. | |
| OctalLiteralsAreDeprecated | Octal literals are deprecated. | |
| OLENoPropOrMethod | Object does not support this property or method. | |
| OnlyClassesAllowed | Only classes are allowed inside a package. | |
| OnlyClassesAndPackagesAllowed | Only classes and packages are allowed inside a library. | |
| OutOfMemory | Out of memory. | |
| OutOfStack | Out of stack space. | |
| OverrideAndHideUsedTogether | Cannot use override and hide together in a member declaration. | |
| PackageExpected | Package name expected. | |
| PackageInWrongContext | Package definition is not allowed in this context. | |
| ParamListNotLast | A variable argument list must be the last argument. | |
| PossibleBadConversion | This conversion may fail at runtime. | |
| PossibleBadConversionFromString | Converting a string to a number or Boolean is slow and may fail at run time. | |
| PrecisionOutOfRange | The precision is out of range. | |
| PropertyLevelAttributesMustBeOnGetter | An attribute that targets the property must be specified on the property getter, if present. | |
| RefParamsNonSupportedInDebugger | Methods with ref parameters cannot be called in the debugger. | |
| RegExpExpected | Regular Expression object expected. | |
| RegExpSyntax | Syntax error in regular expression. | |
| ShouldBeAbstract | A function without a body should be abstract. | |
| SideEffectsDisallowed | ||
| StaticIsAlreadyFinal | Static methods cannot be final. | |
| StaticMethodsCannotHide | Static methods cannot hide base class methods. | |
| StaticMethodsCannotOverride | Static methods cannot override base class methods. | |
| StaticMissingInStaticInit | Static initializer must specify the static keyword. | |
| StaticRequiresTypeName | A static member must be accessed with the class name. | |
| StaticVarNotAvailable | A static variable is not available. | |
| StringConcatIsSlow | The plus operator is a slow way to concatenate strings. Consider using System.Text.StringBuilder instead. | |
| StringExpected | String expected. | |
| SuperClassConstructorNotAccessible | Superclass constructor is not accessible from this scope. | |
| SuspectAssignment | Did you intend to write an assignment here? | |
| SuspectLoopCondition | Did you intend to write an assignment here? | |
| SuspectSemicolon | Did you intend to have an empty statement for this branch of the if statement? | |
| SyntaxError | Discovered syntax error. | |
| TooFewParameters | Not all required parameters have been supplied. | |
| TooManyParameters | There are too many actual parameters. The excess parameters will be ignored. | |
| TooManyTokensSkipped | Too many tokens have been skipped in the process of recovering from errors. The file may not be a JScript .NET file. | |
| TypeAssemblyCLSCompliantMismatch | Type cannot be marked CLS compliant because the assembly is not marked as CLS compliant. | |
| TypeCannotBeExtended | Type cannot be extended. | |
| TypeMismatch | Type mismatch. | |
| TypeNameTooLong | ||
| TypeObjectNotAvailable | The type object for this type is not available. | |
| UncaughtException | Exception thrown and not caught. | |
| UndeclaredVariable | Variable has not been declared. | |
| UndefinedIdentifier | Undefined identifier. | |
| UnexpectedSemicolon | Unexpected ";". | |
| UnreachableCatch | Catch clause will never be reached. | |
| UnterminatedString | String constant not terminated. | |
| URIDecodeError | The URI to be decoded is not a valid encoding. | |
| URIEncodeError | The URI to be encoded contains an invalid character. | |
| UselessAssignment | Assignment creates an Expando property that is immediately thrown away. | |
| UselessExpression | Expression has no effect. | |
| VariableLeftUninitialized | Uninitialized variables are dangerous and slow to use. Did you intend to leave it uninitialized? | |
| VariableMightBeUnitialized | Variable might not be initialized. | |
| VarIllegalInInterface | Variables cannot be declared in an interface. | |
| VBArrayExpected | A VBArray was expected. | |
| WriteOnlyProperty | A property to which you can only assign values. | |
| WrongDirective | Wrong debugger directive or wrong position for the directive. | |
| WrongUseOfAddressOf | The address of operator can only be used in a list of arguments. |
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: