A complete collection of jscript error codes and corresponding explanations
Author:Eve Cole
Update Time:2009-05-30 19:53:57
JScript runtime error
JScript runtime errors are errors caused when a JScript script attempts to perform an action that the system cannot run. JScript runtime errors occur when running a script, evaluating variable expressions, or dynamically allocating memory.
Error number description
5029 The array length must be a finite positive integer
5030 The array length must be assigned a finite positive number
5028 Array or arguments object required
5010 Boolean required
5003 Cannot assign value to function return value
5000 Cannot assign a value to 'this'
5006 requires Date object
5015 Enumerator object required
5022 Exception thrown, but could not be caught
5020 Missing ")" in regular expression
5019 Missing "]" in regular expression
5023 Function has no legal prototype object
5002 Function object required
5008 Illegal assignment
5021 Invalid character set range
5014 JScript object required
5001 requires Number type
5007 Object type required
5012 Requires members of object
5016 Regular expression object required
5005 requires String
5017 Regular expression syntax error
5026 The number of digits in the decimal part exceeds the limit.
5027 Accuracy out of bounds
5025 The encoding of the URI to be decoded is illegal.
5024 The URI to be decoded contains illegal characters.
5009 Undefined identifier
5018 Unexpected qualifier
5013 requires VBArray
JScript syntax error
JScript syntax errors are errors caused when a JScript statement violates one or more syntax rules of the JScript scripting language. JScript syntax errors occur during the compilation phase of a program, before you start running the program.
Error number description
1019 No "break" allowed outside a loop
1020 There cannot be "continue" outside the loop.
1030 Conditional compilation is turned off
1027 There can only be one "default" in a "switch" statement.
1005 requires "("
1006 requires ")"
1012 requires "/"
1003 requires ":"
1004 requires ";"
1032 requires "@"
1029 requires "@end"
1007 requires "]"
1008 requires "{"
1009 requires "}"
1011 requires "="
1033 "catch" required
1031 constant required
1023 requires hexadecimal number
1010 Identifier required
1028 Identifier, string or number required
1024 requires "while"
1014 illegal character
1026 Tag not found
1025 Duplicate tag definition
1018 There is a 'return' statement outside the function.
1002 Syntax error
1035 "Throw" must be followed by an expression on the same source line
1016 Comment not ended
1015 String constant not ended