Export (0) Print
Expand All
Expand Minimize

JSError Enumeration

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Specifies the JScript error messages. This class belongs to the compilation and run-time state category.

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public enum JSError

Member nameDescription
AbstractCannotBePrivateAn abstract method cannot be private.
AbstractCannotBeStaticStatic methods cannot be abstract.
AbstractWithBodyAn abstract function cannot have a body.
ActionNotSupportedThe object does not support this action.
AmbiguousBindingBecauseOfEvalThe presence of Eval has made the use of this name ambiguous.
AmbiguousBindingBecauseOfWithThe With statement has made the use of this name ambiguous.
AmbiguousConstructorCallMore than one constructor matches this parameter list.
AmbiguousMatchMore than one method or property matches this parameter list.
ArrayLengthAssignIncorrectArray length must be assigned a finite positive number.
ArrayLengthConstructIncorrectArray length must be a finite positive integer.
ArrayMayBeCopiedAssigning a JScript array to a System.Array may cause the array to be copied.
AssemblyAttributesMustBeGlobalAssembly custom attributes cannot be part of another construct.
AssignmentToReadOnlyCannot assign to read-only field or property.
BadBreakCannot have break outside the loop.
BadContinueCannot have continue outside the loop.
BadFunctionDeclarationPossible invalid function declaration, function missing, or unrecognized syntax error.
BadHexDigitExpected hexadecimal digit.
BadLabelThere is already a label that has that name.
BadModifierInInterfaceThis modifier cannot be used on an interface member.
BadOctalLiteralMalformed octal literal treated as decimal literal.
BadPropertyDeclarationInvalid property declaration. The get accessor must not have arguments and the set accessor must have one argument.
BadReturnReturn statement cannot appear outside the function.
BadSwitchMissing case or default statement.
BadThrowA throw statement must have an argument unless it is inside the catch block of a try statement.
BadVariableDeclarationPossible invalid variable declaration, var missing, or unrecognized syntax error.
BadWayToLeaveFinallyIt is slow and potentially confusing to leave a finally block this way.
BaseClassIsExpandoAlreadyA base class is already marked Expando; current specification will be ignored.
BooleanExpectedNo Boolean value found.
CannotAssignToFunctionResultCannot assign to a function result.
CannotBeAbstractCannot be abstract unless class is marked as abstract.
CannotCallSecurityMethodLateBoundThe Deny, PermitOnly, and Assert security methods cannot be called using late binding.
CannotChangeVisibilityCannot change visibility specification of a base method.
CannotInstantiateAbstractClassIt is not possible to construct an instance of an abstract class.
CannotNestPositionDirectivePosition directive must be ended before a new one can be started.
CannotReturnValueFromVoidFunctionCannot return a value from a void function or constructor.
CannotUseNameOfClassOnly a constructor function can have the same name as the class it appears in.
CannotUseStaticSecurityAttributeJScript does not support static security attributes.
CantAssignThisCannot assign to this.
CantCreateObjectCannot create object.
CcInvalidElifUnmatched @elif; no @if defined.
CcInvalidElseUnmatched @else; no @if defined.
CcInvalidEndUnmatched @end; no @if defined.
CcInvalidInDebuggerConditional compilation directives and variables cannot be used in the debugger.
CcOffConditional compilation is turned off.
CircularDefinitionCircular definition.
ClashWithPropertyThe name of the field conflicts with the name of the property.
ClassNotAllowedClass definition not allowed in this context.
ConstructorMayNotHaveReturnTypeA constructor cannot have a return type.
CustomAttributeUsedMoreThanOnceThis type of attribute must be unique.
DateExpectedDate object expected.
DelegatesShouldNotBeExplicitlyConstructedDelegates should not be explicitly constructed; simply use the method name.
DeprecatedThe specified type is deprecated.
DifferentReturnTypeFromBaseMethod in base has a different return type.
DoesNotHaveAnAddressExpression does not have an address.
DupDefaultdefault can appear only once in a switch statement.
DuplicateMethodThis method has the same name, parameter types, and return type as another method in this class.
DuplicateNameIdentifier already in use.
DuplicateNamedParameterDuplicate named parameter.
DupVisibilityVisibility modifier already defined.
EnumeratorExpectedEnumerator object expected.
EnumNotAllowedenum definition not allowed in this context.
ErrEOFExpecting more source characters.
ExceptionFromHResultException from HRESULT.
ExecutablesCannotBeLocalizedExecutables cannot be localized; Culture should always be empty.
ExpandoClassShouldNotImpleEnumerableExpando classes should not implement IEnumerable. The interface is implicitly defined on Expando classes.
ExpandoMustBePublicExpando methods must be public.
ExpandoPrecludesAbstractExpando methods cannot be abstract.
ExpandoPrecludesOverrideExpando methods cannot override base class methods.
ExpandoPrecludesStaticExpando methods cannot be static.
ExpectedAssemblyExpected assembly.
ExpressionExpectedExpected expression.
FileNotFoundFile not found.
FinalPrecludesAbstractfinal and abstract cannot be used together.
FractionOutOfRangeThe number of fractional digits is out of range.
FuncEvalAbortedFunction evaluation was aborted.
FuncEvalBadLocationFunction evaluation cannot be done when stopped at this point in the program.
FuncEvalBadThreadNotStartedFunction evaluation failed and the thread has not started.
FuncEvalBadThreadStateFunction evaluation failed. The thread can contain incorrect data.
FuncEvalThreadSleepWaitJoinFunction evaluation failed. The thread is sleeping, waiting for an object, or waiting for another thread to finish.
FuncEvalThreadSuspendedFunction evaluation failed. The thread is suspended.
FuncEvalTimedoutFunction evaluation timed out.
FuncEvalWebMethodCannot call a Web method in the debugger.
FunctionExpectedA function was expected.
GetAndSetAreInconsistentThe get and set methods of this property do not match each other.
HidesAbstractInBaseMethod hides abstract in a base class.
HidesParentMemberbase class already contains a member by this name.
IllegalAssignmentInvalid assignment.
IllegalCharInvalid character.
IllegalEvalAn Eval cannot be called by an alias.
IllegalParamArrayAttributeA variable argument list must be of an array type.
IllegalUseOfSuperIt is not valid to use the base class in this way.
IllegalUseOfThisIt is not valid to use this in the current context.
IllegalVisibilityInvalid visibility modifier.
ImplicitlyReferencedAssemblyNotFoundA referenced assembly depends on another assembly that is not referenced or could not be found.
ImpossibleConversionThe specified conversion or coercion is not possible.
IncompatibleAssemblyReferenceThe assembly referenced is incompatible.
IncompatibleVisibilityIncompatible visibility modifier.
IncorrectNumberOfIndicesThe number of indices does not match the dimension of the array.
InstanceNotAccessibleFromStaticA non-static member is not accessible from a static scope.
InterfaceIllegalInInterfaceInterfaces cannot be declared in an interface.
InternalErrorAn internal error has been thrown.
InvalidAssemblyKeyFileAn invalid assembly key file has been used.
InvalidBaseTypeForEnumenum base type must be a primitive integral type.
InvalidCallInvalid procedure call or argument.
InvalidCustomAttributeA custom attribute class must derive from Attribute.
InvalidCustomAttributeArgumentOnly primitive types are allowed in a custom attribute constructor arguments list.
InvalidCustomAttributeClassOrCtorUnknown custom attribute class or constructor.
InvalidCustomAttributeTargetThis attribute is not valid for this type of declaration.
InvalidDebugDirectiveInvalid debug directive.
InvalidElseUnmatched else; no if defined.
InvalidImportThe import statement is not valid in this context.
InvalidLanguageOptionMust specify either "fast" or "versionSafe" language option.
InvalidPositionDirectiveAn unknown position directive was discovered.
InvalidPrototypeThis function does not have a valid prototype object.
InvalidResourceThis is not a valid .resources file.
ItemNotAllowedOnExpandoClassCannot define the property Item on an Expando class. This Item is reserved for the Expando fields.
KeywordUsedAsIdentifierYou cannot use a reserved word as an identifier.
MemberInitializerCannotContainFuncExprA member initializer cannot contain a function expression.
MemberTypeCLSCompliantMismatchClass member cannot be marked Common Language Specification (CLS) compliant because the class is not marked CLS compliant.
MethodClashOnExpandoSuperClassCannot create the Expando class because a property named Item is already defined in the class hierarchy.
MethodInBaseIsNotVirtualA method in a base class that is final or not virtual override is ignored. Specify hide.
MethodNotAllowedOnExpandoClassCannot define a property named Item on an Expando class.
MissingConstructForAttributesThe list of attributes does not apply to the current context.
MissingNameParameterThe specified named parameter name is not one of the formal parameters.
MoreNamedParametersThanArgumentsToo few arguments specified. The number of named parameter names cannot exceed the number of arguments passed in.
MustBeEOLDirective cannot be followed by other code on the same line.
MustImplementMethodThe class must provide an implementation of the method.
MustProvideNameForNamedParameterCannot provide null or empty named parameter name.
NeedArrayObjectA "|" is not an array object. Array object expected.
NeedCompileTimeConstantAn expression must be a compile-time constant.
NeedInstanceAn instance is expected.
NeedInterfaceAn interface name is expected.
NeedObjectAn object is required.
NeedTypeA type name is expected.
NestedInstanceTypeCannotBeExtendedByStaticA non-static nested type can be extended only by a non-static type nested in the same class.
NewNotSpecifiedInMethodDeclarationA method matches a method in a base class. Must specify override or hide.
NoAtExpected @.
NoCatchExpected catch.
NoCcEndExpected @end.
NoColonExpected ":".
NoCommaExpected ",".
NoCommaOrTypeDefinitionErrorExpected "," or invalid type declaration; write "<Identifier> : <Type>" not "<Type> <Identifier>".
NoCommentEndComment not terminated.
NoConstructorNo such constructor.
NoEqualExpected "=".
NoErrorNo error. This is the default (0) value for the enumeration.
NoFuncEvalAllowedFunction evaluation aborted. To turn on property evaluation, click Options on the Tools menu and then select the Debugging in the tree view.
NoIdentifierExpected identifier.
NoLabelLabel not found.
NoLeftCurlyExpected "{".
NoLeftParenExpected "(".
NoMemberIdentifierExpected identifier or string.
NoMethodInBaseToNewThere is no member in a base class to hide.
NoMethodInBaseToOverrideThere is no member in a base class to override.
NonCLSCompliantMemberThe specified member is not CLS compliant.
NonCLSCompliantTypeThe specified type is not CLS compliant.
NonClsExceptionA target threw a non-CLS exception.
NonStaticWithTypeNameA non-static member cannot be accessed with the class name.
NonSupportedInDebuggerThe expression cannot be evaluated in the debugger.
NoRightBracketExpected "]".
NoRightBracketOrCommaExpected "," or "]".
NoRightCurlyExpected "}".
NoRightParenExpected ")".
NoRightParenOrCommaExpected "," or ")".
NoSemicolonExpected ";".
NoSuchMemberObjects of this type do not have such a member.
NoSuchStaticMemberType does not have such a static member.
NoSuchTypeType could not be found. An assembly reference might be missing.
NotAccessibleThe object or member is not accessible from this scope.
NotAllowedInSuperConstructorCallObject or member is not allowed in a call to the base class constructor.
NotAnExpandoFunctionClass members used as constructors should be marked as Expando functions.
NotCollectionThis object is not a collection.
NotConstExpected constant.
NotDeletableThe object or member cannot be deleted.
NotIndexableObjects of this type are not indexable.
NotInsideClassValid only inside a class definition.
NotMeantToBeCalledDirectlyYou cannot call this method directly. If possible, use property accessors instead.
NotOKToCallSuperIt is not valid to call a base class constructor from this location.
NotValidForConstructorNot valid for a constructor.
NotValidVersionStringNot a valid version string.
NotYetImplementedNot yet implemented.
NoVarInEnumenum member declarations should not use the var keyword.
NoWhileExpected while.
NumberExpectedExpected a number.
ObjectExpectedExpected an object.
OctalLiteralsAreDeprecatedOctal literals are deprecated.
OLENoPropOrMethodObject does not support this property or method.
OnlyClassesAllowedOnly classes are allowed inside a package.
OnlyClassesAndPackagesAllowedOnly classes and packages are allowed inside a library.
OutOfMemoryOut of memory.
OutOfStackOut of stack space.
OverrideAndHideUsedTogetherCannot use override and hide together in a member declaration.
PackageExpectedPackage name expected.
PackageInWrongContextPackage definition is not allowed in this context.
ParamListNotLastA variable argument list must be the last argument.
PossibleBadConversionThis conversion may fail at runtime.
PossibleBadConversionFromStringConverting a string to a number or Boolean is slow and may fail at run time.
PrecisionOutOfRangeThe precision is out of range.
PropertyLevelAttributesMustBeOnGetterAn attribute that targets the property must be specified on the get accessor, if the get accessor is present.
RefParamsNonSupportedInDebuggerMethods with ref parameters cannot be called in the debugger.
RegExpExpectedRegExpObject object expected.
RegExpSyntaxSyntax error in regular expression.
ShouldBeAbstractA function without a body should be abstract.
SideEffectsDisallowedThe expression causes side effects and will not be evaluated.
StaticIsAlreadyFinalStatic methods cannot be final.
StaticMethodsCannotHideStatic methods cannot hide base class methods.
StaticMethodsCannotOverrideStatic methods cannot override base class methods.
StaticMissingInStaticInitStatic initializer must specify the static keyword.
StaticRequiresTypeNameA static member must be accessed by the class name.
StaticVarNotAvailableA static variable is not available.
StringConcatIsSlowThe plus operator is a slow way to concatenate strings. Consider using System.Text.StringBuilder instead.
StringExpectedString expected.
SuperClassConstructorNotAccessibleBase class constructor is not accessible from this scope.
SuspectAssignmentIf condition cannot contain an assignment.
SuspectLoopConditionLoop condition cannot contain a function call.
SuspectSemicolonEmpty statement found in if statement.
SyntaxErrorDiscovered syntax error.
TooFewParametersNot all required parameters have been supplied.
TooManyParametersThere are too many actual parameters. The excess parameters will be ignored.
TooManyTokensSkippedToo many errors. The file might not be a JScript file.
TypeAssemblyCLSCompliantMismatchType cannot be marked CLS compliant because the assembly is not marked as CLS compliant.
TypeCannotBeExtendedType cannot be extended.
TypeMismatchType mismatch.
TypeNameTooLongThe fully qualified type name is too long. It must be less than 1,024 characters.
TypeObjectNotAvailableThe type object for this type is not available.
UncaughtExceptionException thrown and not caught.
UndeclaredVariableVariable has not been declared.
UndefinedIdentifierUndefined identifier.
UnexpectedSemicolonUnexpected ";".
UnreachableCatchCatch clause will never be reached.
UnterminatedStringString constant not terminated.
URIDecodeErrorThe URI to be decoded is not a valid encoding.
URIEncodeErrorThe URI to be encoded contains an invalid character.
UselessAssignmentAn assignment creates an Expando property that is immediately thrown away.
UselessExpressionExpression has no effect.
VariableLeftUninitializedUninitialized variables are dangerous and slow to use. Did you intend to leave it uninitialized?
VariableMightBeUnitializedVariable might not be initialized.
VarIllegalInInterfaceVariables cannot be declared in an interface.
VBArrayExpectedA VBArray is expected.
WriteOnlyPropertyThe property is write-only.
WrongDirectiveWrong debugger directive or wrong position for the directive.
WrongUseOfAddressOfThe address of operator can be used only in a list of arguments.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft