JSError Enum

Definition

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

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

public enum class JSError
[System.Runtime.InteropServices.ComVisible(true)]
public enum JSError
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("268CA962-2FEF-3152-BA46-E18658B7FA4F")]
public enum JSError
[<System.Runtime.InteropServices.ComVisible(true)>]
type JSError = 
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("268CA962-2FEF-3152-BA46-E18658B7FA4F")>]
type JSError = 
Public Enum JSError
Inheritance
Attributes

Fields

AbstractCannotBePrivate 1157

An abstract method cannot be private.

AbstractCannotBeStatic 1216

Static methods cannot be abstract.

AbstractWithBody 1192

An abstract function cannot have a body.

ActionNotSupported 445

The object does not support this action.

AmbiguousBindingBecauseOfEval 1150

The presence of Eval has made the use of this name ambiguous.

AmbiguousBindingBecauseOfWith 1149

The With statement has made the use of this name ambiguous.

AmbiguousConstructorCall 1184

More than one constructor matches this parameter list.

AmbiguousMatch 1183

More than one method or property matches this parameter list.

ArrayLengthAssignIncorrect 5030

Array length must be assigned a finite positive number.

ArrayLengthConstructIncorrect 5029

Array length must be a finite positive integer.

ArrayMayBeCopied 1215

Assigning a JScript array to a Array may cause the array to be copied.

AssemblyAttributesMustBeGlobal 1249

Assembly custom attributes cannot be part of another construct.

AssignmentToReadOnly 5040

Cannot assign to read-only field or property.

BadBreak 1019

Cannot have break outside the loop.

BadContinue 1020

Cannot have continue outside the loop.

BadFunctionDeclaration 1199

Possible invalid function declaration, function missing, or unrecognized syntax error.

BadHexDigit 1023

Expected hexadecimal digit.

BadLabel 1025

There is already a label that has that name.

BadModifierInInterface 1224

This modifier cannot be used on an interface member.

BadOctalLiteral 1242

Malformed octal literal treated as decimal literal.

BadPropertyDeclaration 1200

Invalid property declaration. The get accessor must not have arguments and the set accessor must have one argument.

BadReturn 1018

Return statement cannot appear outside the function.

BadSwitch 1103

Missing case or default statement.

BadThrow 1239

A throw statement must have an argument unless it is inside the catch block of a try statement.

BadVariableDeclaration 1198

Possible invalid variable declaration, var missing, or unrecognized syntax error.

BadWayToLeaveFinally 1190

It is slow and potentially confusing to leave a finally block this way.

BaseClassIsExpandoAlready 1156

A base class is already marked Expando; current specification will be ignored.

BooleanExpected 5010

No Boolean value found.

CannotAssignToFunctionResult 5003

Cannot assign to a function result.

CannotBeAbstract 1212

Cannot be abstract unless class is marked as abstract.

CannotCallSecurityMethodLateBound 5044

The Deny(), PermitOnly(), and Assert() security methods cannot be called using late binding.

CannotChangeVisibility 1171

Cannot change visibility specification of a base method.

CannotInstantiateAbstractClass 1214

It is not possible to construct an instance of an abstract class.

CannotNestPositionDirective 1119

Position directive must be ended before a new one can be started.

CannotReturnValueFromVoidFunction 1182

Cannot return a value from a void function or constructor.

CannotUseNameOfClass 1124

Only a constructor function can have the same name as the class it appears in.

CannotUseStaticSecurityAttribute 5045

JScript does not support static security attributes.

CantAssignThis 5000

Cannot assign to this.

CantCreateObject 429

Cannot create object.

CcInvalidElif 1106

Unmatched @elif; no @if defined.

CcInvalidElse 1105

Unmatched @else; no @if defined.

CcInvalidEnd 1104

Unmatched @end; no @if defined.

CcInvalidInDebugger 1256

Conditional compilation directives and variables cannot be used in the debugger.

CcOff 1030

Conditional compilation is turned off.

CircularDefinition 1120

Circular definition.

ClashWithProperty 1177

The name of the field conflicts with the name of the property.

ClassNotAllowed 1109

Class definition not allowed in this context.

ConstructorMayNotHaveReturnType 1233

A constructor cannot have a return type.

CustomAttributeUsedMoreThanOnce 1236

This type of attribute must be unique.

DateExpected 5006

Date object expected.

DelegatesShouldNotBeExplicitlyConstructed 1258

Delegates should not be explicitly constructed; simply use the method name.

Deprecated 1121

The specified type is deprecated.

DifferentReturnTypeFromBase 1176

Method in base has a different return type.

DoesNotHaveAnAddress 1203

Expression does not have an address.

DupDefault 1027

default can appear only once in a switch statement.

DuplicateMethod 1251

This method has the same name, parameter types, and return type as another method in this class.

DuplicateName 1111

Identifier already in use.

DuplicateNamedParameter 5036

Duplicate named parameter.

DupVisibility 1101

Visibility modifier already defined.

EnumeratorExpected 5015

Enumerator object expected.

EnumNotAllowed 1230

enum definition not allowed in this context.

ErrEOF 1107

Expecting more source characters.

ExceptionFromHResult 6011

Exception from HRESULT.

ExecutablesCannotBeLocalized 1254

Executables cannot be localized; Culture should always be empty.

ExpandoClassShouldNotImpleEnumerable 1162

Expando classes should not implement IEnumerable. The interface is implicitly defined on Expando classes.

ExpandoMustBePublic 1257

Expando methods must be public.

ExpandoPrecludesAbstract 1222

Expando methods cannot be abstract.

ExpandoPrecludesOverride 1220

Expando methods cannot override base class methods.

ExpandoPrecludesStatic 1250

Expando methods cannot be static.

ExpectedAssembly 1248

Expected assembly.

ExpressionExpected 1195

Expected expression.

FileNotFound 53

File not found.

FinalPrecludesAbstract 1209

final and abstract cannot be used together.

FractionOutOfRange 5026

The number of fractional digits is out of range.

FuncEvalAborted 6000

Function evaluation was aborted.

FuncEvalBadLocation 6007

Function evaluation cannot be done when stopped at this point in the program.

FuncEvalBadThreadNotStarted 6005

Function evaluation failed and the thread has not started.

FuncEvalBadThreadState 6004

Function evaluation failed. The thread can contain incorrect data.

FuncEvalThreadSleepWaitJoin 6003

Function evaluation failed. The thread is sleeping, waiting for an object, or waiting for another thread to finish.

FuncEvalThreadSuspended 6002

Function evaluation failed. The thread is suspended.

FuncEvalTimedout 6001

Function evaluation timed out.

FuncEvalWebMethod 6008

Cannot call a Web method in the debugger.

FunctionExpected 5002

A function was expected.

GetAndSetAreInconsistent 1142

The get and set methods of this property do not match each other.

HidesAbstractInBase 1172

Method hides abstract in a base class.

HidesParentMember 1170

base class already contains a member by this name.

IllegalAssignment 5008

Invalid assignment.

IllegalChar 1014

Invalid character.

IllegalEval 5033

An Eval cannot be called by an alias.

IllegalParamArrayAttribute 1221

A variable argument list must be of an array type.

IllegalUseOfSuper 1189

It is not valid to use the base class in this way.

IllegalUseOfThis 1122

It is not valid to use this in the current context.

IllegalVisibility 1102

Invalid visibility modifier.

ImplicitlyReferencedAssemblyNotFound 1259

A referenced assembly depends on another assembly that is not referenced or could not be found.

ImpossibleConversion 1208

The specified conversion or coercion is not possible.

IncompatibleAssemblyReference 1267

The assembly referenced is incompatible.

IncompatibleVisibility 1108

Incompatible visibility modifier.

IncorrectNumberOfIndices 5042

The number of indices does not match the dimension of the array.

InstanceNotAccessibleFromStatic 1243

A non-static member is not accessible from a static scope.

InterfaceIllegalInInterface 1227

Interfaces cannot be declared in an interface.

InternalError 51

An internal error has been thrown.

InvalidAssemblyKeyFile 1268

An invalid assembly key file has been used.

InvalidBaseTypeForEnum 1213

enum base type must be a primitive integral type.

InvalidCall 5

Invalid procedure call or argument.

InvalidCustomAttribute 1143

A custom attribute class must derive from Attribute.

InvalidCustomAttributeArgument 1144

Only primitive types are allowed in a custom attribute constructor arguments list.

InvalidCustomAttributeClassOrCtor 1146

Unknown custom attribute class or constructor.

InvalidCustomAttributeTarget 1231

This attribute is not valid for this type of declaration.

InvalidDebugDirective 1235

Invalid debug directive.

InvalidElse 1034

Unmatched else; no if defined.

InvalidImport 1229

The import statement is not valid in this context.

InvalidLanguageOption 1179

Must specify either "fast" or "versionSafe" language option.

InvalidPositionDirective 1114

An unknown position directive was discovered.

InvalidPrototype 5023

This function does not have a valid prototype object.

InvalidResource 1262

This is not a valid .resources file.

ItemNotAllowedOnExpandoClass 1152

Cannot define the property Item on an Expando class. This Item is reserved for the Expando fields.

KeywordUsedAsIdentifier 1137

You cannot use a reserved word as an identifier.

MemberInitializerCannotContainFuncExpr 1270

A member initializer cannot contain a function expression.

MemberTypeCLSCompliantMismatch 1265

Class member cannot be marked Common Language Specification (CLS) compliant because the class is not marked CLS compliant.

MethodClashOnExpandoSuperClass 1155

Cannot create the Expando class because a property named Item is already defined in the class hierarchy.

MethodInBaseIsNotVirtual 1174

A method in a base class that is final or not virtualoverride is ignored. Specify hide.

MethodNotAllowedOnExpandoClass 1153

Cannot define a property named Item on an Expando class.

MissingConstructForAttributes 1160

The list of attributes does not apply to the current context.

MissingNameParameter 5037

The specified named parameter name is not one of the formal parameters.

MoreNamedParametersThanArguments 5038

Too few arguments specified. The number of named parameter names cannot exceed the number of arguments passed in.

MustBeEOL 1115

Directive cannot be followed by other code on the same line.

MustImplementMethod 1128

The class must provide an implementation of the method.

MustProvideNameForNamedParameter 5035

Cannot provide null or empty named parameter name.

NeedArrayObject 5031

A "|" is not an array object. Array object expected.

NeedCompileTimeConstant 1110

An expression must be a compile-time constant.

NeedInstance 1210

An instance is expected.

NeedInterface 1129

An interface name is expected.

NeedObject 424

An object is required.

NeedType 1112

A type name is expected.

NestedInstanceTypeCannotBeExtendedByStatic 1237

A non-static nested type can be extended only by a non-static type nested in the same class.

NewNotSpecifiedInMethodDeclaration 1173

A method matches a method in a base class. Must specify override or hide.

NoAt 1032

Expected @.

NoCatch 1033

Expected catch.

NoCcEnd 1029

Expected @end.

NoColon 1003

Expected ":".

NoComma 1100

Expected ",".

NoCommaOrTypeDefinitionError 1191

Expected "," or invalid type declaration; write "<Identifier> : <Type>" not "<Type> <Identifier>".

NoCommentEnd 1016

Comment not terminated.

NoConstructor 5032

No such constructor.

NoEqual 1011

Expected "=".

NoError 0

No error. This is the default (0) value for the enumeration.

NoFuncEvalAllowed 6006

Function evaluation aborted. To turn on property evaluation, click Options on the Tools menu and then select the Debugging in the tree view.

NoIdentifier 1010

Expected identifier.

NoLabel 1026

Label not found.

NoLeftCurly 1008

Expected "{".

NoLeftParen 1005

Expected "(".

NoMemberIdentifier 1028

Expected identifier or string.

NoMethodInBaseToNew 1175

There is no member in a base class to hide.

NoMethodInBaseToOverride 1180

There is no member in a base class to override.

NonCLSCompliantMember 1163

The specified member is not CLS compliant.

NonCLSCompliantType 1264

The specified type is not CLS compliant.

NonClsException 5046

A target threw a non-CLS exception.

NonStaticWithTypeName 1245

A non-static member cannot be accessed with the class name.

NonSupportedInDebugger 5039

The expression cannot be evaluated in the debugger.

NoRightBracket 1007

Expected "]".

NoRightBracketOrComma 1194

Expected "," or "]".

NoRightCurly 1009

Expected "}".

NoRightParen 1006

Expected ")".

NoRightParenOrComma 1193

Expected "," or ")".

NoSemicolon 1004

Expected ";".

NoSuchMember 1151

Objects of this type do not have such a member.

NoSuchStaticMember 1246

Type does not have such a static member.

NoSuchType 1241

Type could not be found. An assembly reference might be missing.

NotAccessible 1123

The object or member is not accessible from this scope.

NotAllowedInSuperConstructorCall 1140

Object or member is not allowed in a call to the base class constructor.

NotAnExpandoFunction 1252

Class members used as constructors should be marked as Expando functions.

NotCollection 451

This object is not a collection.

NotConst 1031

Expected constant.

NotDeletable 1164

The object or member cannot be deleted.

NotIndexable 1158

Objects of this type are not indexable.

NotInsideClass 1113

Valid only inside a class definition.

NotMeantToBeCalledDirectly 1141

You cannot call this method directly. If possible, use property accessors instead.

NotOKToCallSuper 1188

It is not valid to call a base class constructor from this location.

NotValidForConstructor 1181

Not valid for a constructor.

NotValidVersionString 1253

Not a valid version string.

NotYetImplemented 5034

Not yet implemented.

NoVarInEnum 1228

enum member declarations should not use the var keyword.

NoWhile 1024

Expected while.

NumberExpected 5001

Expected a number.

ObjectExpected 5007

Expected an object.

OctalLiteralsAreDeprecated 1186

Octal literals are deprecated.

OLENoPropOrMethod 438

Object does not support this property or method.

OnlyClassesAllowed 1161

Only classes are allowed inside a package.

OnlyClassesAndPackagesAllowed 1234

Only classes and packages are allowed inside a library.

OutOfMemory 7

Out of memory.

OutOfStack 28

Out of stack space.

OverrideAndHideUsedTogether 1178

Cannot use override and hide together in a member declaration.

PackageExpected 1165

Package name expected.

PackageInWrongContext 1232

Package definition is not allowed in this context.

ParamListNotLast 1240

A variable argument list must be the last argument.

PossibleBadConversion 1260

This conversion may fail at runtime.

PossibleBadConversionFromString 1261

Converting a string to a number or Boolean is slow and may fail at run time.

PrecisionOutOfRange 5027

The precision is out of range.

PropertyLevelAttributesMustBeOnGetter 1238

An attribute that targets the property must be specified on the get accessor, if the get accessor is present.

RefParamsNonSupportedInDebugger 5043

Methods with ref parameters cannot be called in the debugger.

RegExpExpected 5016

RegExpObject object expected.

RegExpSyntax 5017

Syntax error in regular expression.

ShouldBeAbstract 1223

A function without a body should be abstract.

SideEffectsDisallowed 6012

The expression causes side effects and will not be evaluated.

StaticIsAlreadyFinal 1217

Static methods cannot be final.

StaticMethodsCannotHide 1219

Static methods cannot hide base class methods.

StaticMethodsCannotOverride 1218

Static methods cannot override base class methods.

StaticMissingInStaticInit 1159

Static initializer must specify the static keyword.

StaticRequiresTypeName 1244

A static member must be accessed by the class name.

StaticVarNotAvailable 6009

A static variable is not available.

StringConcatIsSlow 1255

The plus operator is a slow way to concatenate strings. Consider using StringBuilder instead.

StringExpected 5005

String expected.

SuperClassConstructorNotAccessible 1185

Base class constructor is not accessible from this scope.

SuspectAssignment 1206

If condition cannot contain an assignment.

SuspectLoopCondition 1247

Loop condition cannot contain a function call.

SuspectSemicolon 1207

Empty statement found in if statement.

SyntaxError 1002

Discovered syntax error.

TooFewParameters 1204

Not all required parameters have been supplied.

TooManyParameters 1148

There are too many actual parameters. The excess parameters will be ignored.

TooManyTokensSkipped 1197

Too many errors. The file might not be a JScript file.

TypeAssemblyCLSCompliantMismatch 1266

Type cannot be marked CLS compliant because the assembly is not marked as CLS compliant.

TypeCannotBeExtended 1134

Type cannot be extended.

TypeMismatch 13

Type mismatch.

TypeNameTooLong 1269

The fully qualified type name is too long. It must be less than 1,024 characters.

TypeObjectNotAvailable 6010

The type object for this type is not available.

UncaughtException 5022

Exception thrown and not caught.

UndeclaredVariable 1135

Variable has not been declared.

UndefinedIdentifier 5009

Undefined identifier.

UnexpectedSemicolon 1196

Unexpected ";".

UnreachableCatch 1133

Catch clause will never be reached.

UnterminatedString 1015

String constant not terminated.

URIDecodeError 5025

The URI to be decoded is not a valid encoding.

URIEncodeError 5024

The URI to be encoded contains an invalid character.

UselessAssignment 1205

An assignment creates an Expando property that is immediately thrown away.

UselessExpression 1169

Expression has no effect.

VariableLeftUninitialized 1136

Uninitialized variables are dangerous and slow to use. Did you intend to leave it uninitialized?

VariableMightBeUnitialized 1187

Variable might not be initialized.

VarIllegalInInterface 1226

Variables cannot be declared in an interface.

VBArrayExpected 5013

A VBArray is expected.

WriteOnlyProperty 5041

The property is write-only.

WrongDirective 1118

Wrong debugger directive or wrong position for the directive.

WrongUseOfAddressOf 1263

The address of operator can be used only in a list of arguments.

Applies to