PageRenderTime 59ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/resources/ErrorConstants.xml

http://github.com/lightspark/lightspark
XML | 673 lines | 555 code | 100 blank | 18 comment | 0 complexity | 7ecb8d53f7f8e4ad8e4c34d613f47fa0 MD5 | raw file
Possible License(s): GPL-3.0, LGPL-3.0, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. <?xml version='1.0' encoding='utf-8' standalone='no' ?>
  2. <!-- -*- Mode: xml; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- -->
  3. <!-- vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) -->
  4. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  5. - License, v. 2.0. If a copy of the MPL was not distributed with this
  6. - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  7. <errors> This table contains all of the error messages generated by core
  8. avmplus. This will likely be replaced by a resource table
  9. for easy localization.
  10. %o = ScriptObject*
  11. %t = Traits*
  12. %m = MethodInfo*
  13. %n = Multiname (name portion only)
  14. %N = Multiname (namespace portion only)
  15. %a = Atom
  16. %d = int
  17. %f = double
  18. %S = Stringp
  19. %s = char*
  20. <error id="1000" label="kOutOfMemoryError">The system is out of memory.
  21. <description><![CDATA[
  22. Flash Player needs more memory to compile your code than your system has available.
  23. Close some of the applications or processes running on your system.
  24. ]]></description></error>
  25. <error id="1001" label="kNotImplementedError">The method %1 is not implemented.</error>
  26. <error id="1002" label="kInvalidPrecisionError">Number.toPrecision has a range of 1 to 21. Number.toFixed and Number.toExponential have a range of 0 to 20. Specified value is not within expected range.
  27. <description><![CDATA[
  28. You specified a value that is not within the expected range of the <code>precision</code> argument. Number.toPrecision has a range of 1 to 21. Number.toFixed and Number.toExponential have a range of 0 to 20.
  29. ]]></description></error>
  30. <error id="1003" label="kInvalidRadixError">The radix argument must be between 2 and 36; got %1.
  31. <description><![CDATA[
  32. You passed a value less than 2 or greater than 36 for the <code>radix</code> argument of a method or property.
  33. Pass a value between 2 and 36 as a <code>radix</code> argument.
  34. ]]></description> </error>
  35. <error id="1004" label="kInvokeOnIncompatibleObjectError">Method %1 was invoked on an incompatible object.
  36. <description><![CDATA[
  37. You tried to call a method that is not available to the specified object. This error occurs when
  38. you have copied a prototype function from one object to another, and then invoked it, but the
  39. target object is not the same type as the original object. Ensure that the target object and
  40. original object are the same type. See the ECMAScript Language Specification, 3rd Edition, Chapter 15 for more details.
  41. ]]></description></error>
  42. <!-- ISSUE jsshell reports "invalid array length" -->
  43. <error id="1005" label="kArrayIndexNotIntegerError">Array index is not a positive integer (%1).
  44. <description><![CDATA[
  45. You tried to access a member of an array using an index value that is not a positive integer. Pass only positive integers as index values for arrays.
  46. ]]></description></error>
  47. <error id="1006" label="kCallOfNonFunctionError">%1 is not a function.
  48. <description><![CDATA[
  49. This error occurs when you attempt to call a function that does not exist.
  50. Make sure you are calling the correct function, and that the API has
  51. not changed from ActionScript 2.0. Also, make sure you are using the correct
  52. object. For example, you will see this error when you use the following code
  53. (because the last line mistakenly calls the variable <code>big</code> instead
  54. of <code>blg</code>):
  55. <pre><code>var blg:String = "foo";
  56. var big:Sprite = new Sprite();
  57. var error:int = big.length(); </code></pre>
  58. ]]></description></error>
  59. <error id="1007" label="kConstructOfNonFunctionError">Instantiation attempted on a non-constructor.</error>
  60. <error id="1008" label="kAmbiguousBindingError">%1 is ambiguous; Found more than one matching binding.</error>
  61. <error id="1009" label="kConvertNullToObjectError">Cannot access a property or method of a null object reference.
  62. <description><![CDATA[
  63. An object that evaluates to <code>null</code> can have no properties. This error can occur in some unexpected
  64. (though valid) situations. For example, consider the following code, which creates a Sprite
  65. object. Because this Sprite object is never added to the display list (through the
  66. <code>addChild()</code> method of a DisplayObjectContainer object), its <code>stage</code>
  67. property is set to <code>null</code>. Thus, the example generates this error because Sprite object's <code>stage</code> property
  68. cannot have any properties:
  69. <pre><code>import flash.display.Sprite;
  70. var sprite1:Sprite = new Sprite();
  71. var q:String = sprite1.stage.quality;</code></pre>
  72. ]]></description></error>
  73. <error id="1010" label="kConvertUndefinedToObjectError">A term is undefined and has no properties.
  74. <description><![CDATA[
  75. This error can occur if you try to access a property of an object that does not exist. For example:
  76. <pre><code>var obj:Object = new Object();
  77. obj.a = "foo";
  78. trace(obj.b.prop);</code></pre>
  79. <p>You can also see this error because of a misspelling, for example in the following, where
  80. <code>mc</code> represents a MovieClip object in the display list, and the <code>stage</code>
  81. property is misspelled with a capital S (it should be <code>stage</code>):</p>
  82. <pre><code>trace(mc.Stage.quality);</code></pre>
  83. ]]></description></error>
  84. <error id="1011" label="kIllegalOpcodeError">Method %1 contained illegal opcode %2 at offset %3.
  85. <description><![CDATA[
  86. See the <a href="#note">note</a> at the bottom of this table.&#42;
  87. ]]></description></error>
  88. <error id="1012" label="kLastInstExceedsCodeSizeError">The last instruction exceeded code size.
  89. <description><![CDATA[
  90. See the <a href="#note">note</a> at the bottom of this table.&#42;
  91. ]]></description></error>
  92. <error id="1013" label="kFindVarWithNoScopeError">Cannot call OP_findproperty when scopeDepth is 0.
  93. <description><![CDATA[
  94. See the <a href="#note">note</a> at the bottom of this table.&#42;
  95. ]]></description></error>
  96. <error id="1014" label="kClassNotFoundError">Class %1 could not be found.</error>
  97. <error id="1015" label="kIllegalSetDxns">Method %1 cannot set default xml namespace
  98. <description><![CDATA[
  99. See the <a href="#note">note</a> at the bottom of this table.&#42;
  100. ]]></description></error>
  101. <error id="1016" label="kDescendentsError">Descendants operator (..) not supported on type %1.</error>
  102. <error id="1017" label="kScopeStackOverflowError">Scope stack overflow occurred.
  103. <description><![CDATA[
  104. See the <a href="#note">note</a> at the bottom of this table.&#42;
  105. ]]></description></error>
  106. <error id="1018" label="kScopeStackUnderflowError">Scope stack underflow occurred.
  107. <description><![CDATA[
  108. See the <a href="#note">note</a> at the bottom of this table.&#42;
  109. ]]></description></error>
  110. <error id="1019" label="kGetScopeObjectBoundsError">Getscopeobject %1 is out of bounds.
  111. <description><![CDATA[
  112. See the <a href="#note">note</a> at the bottom of this table.&#42;
  113. ]]></description></error>
  114. <error id="1020" label="kCannotFallOffMethodError">Code cannot fall off the end of a method.
  115. <description><![CDATA[
  116. See the <a href="#note">note</a> at the bottom of this table.&#42;
  117. ]]></description></error>
  118. <error id="1021" label="kInvalidBranchTargetError">At least one branch target was not on a valid instruction in the method.
  119. <description><![CDATA[
  120. See the <a href="#note">note</a> at the bottom of this table.&#42;
  121. ]]></description></error>
  122. <error id="1022" label="kIllegalVoidError">Type void may only be used as a function return type.
  123. <description><![CDATA[
  124. See the <a href="#note">note</a> at the bottom of this table.&#42;
  125. ]]></description></error>
  126. <error id="1023" label="kStackOverflowError">Stack overflow occurred.
  127. <description><![CDATA[
  128. See the <a href="#note">note</a> at the bottom of this table.&#42;
  129. ]]></description></error>
  130. <error id="1024" label="kStackUnderflowError">Stack underflow occurred.
  131. <description><![CDATA[
  132. See the <a href="#note">note</a> at the bottom of this table.&#42;
  133. ]]></description></error>
  134. <error id="1025" label="kInvalidRegisterError">An invalid register %1 was accessed.
  135. <description><![CDATA[
  136. See the <a href="#note">note</a> at the bottom of this table.&#42;
  137. ]]></description></error>
  138. <error id="1026" label="kSlotExceedsCountError">Slot %1 exceeds slotCount=%2 of %3.
  139. <description><![CDATA[
  140. See the <a href="#note">note</a> at the bottom of this table.&#42;
  141. ]]></description></error>
  142. <error id="1027" label="kMethodInfoExceedsCountError">Method_info %1 exceeds method_count=%2.
  143. <description><![CDATA[
  144. See the <a href="#note">note</a> at the bottom of this table.&#42;
  145. ]]></description></error>
  146. <error id="1028" label="kDispIdExceedsCountError">Disp_id %1 exceeds max_disp_id=%2 of %3.
  147. <description><![CDATA[
  148. See the <a href="#note">note</a> at the bottom of this table.&#42;
  149. ]]></description></error>
  150. <error id="1029" label="kDispIdUndefinedError">Disp_id %1 is undefined on %2.
  151. <description><![CDATA[
  152. See the <a href="#note">note</a> at the bottom of this table.&#42;
  153. ]]></description></error>
  154. <error id="1030" label="kStackDepthUnbalancedError">Stack depth is unbalanced. %1 != %2.
  155. <description><![CDATA[
  156. See the <a href="#note">note</a> at the bottom of this table.&#42;
  157. ]]></description></error>
  158. <error id="1031" label="kScopeDepthUnbalancedError">Scope depth is unbalanced. %1 != %2.
  159. <description><![CDATA[
  160. See the <a href="#note">note</a> at the bottom of this table.&#42;
  161. ]]></description></error>
  162. <error id="1032" label="kCpoolIndexRangeError">Cpool index %1 is out of range %2.
  163. <description><![CDATA[
  164. See the <a href="#note">note</a> at the bottom of this table.&#42;
  165. ]]></description></error>
  166. <error id="1033" label="kCpoolEntryWrongTypeError">Cpool entry %1 is wrong type.
  167. <description><![CDATA[
  168. See the <a href="#note">note</a> at the bottom of this table.&#42;
  169. ]]></description></error>
  170. <error id="1034" label="kCheckTypeFailedError">Type Coercion failed: cannot convert %1 to %2.</error>
  171. <error id="1035" label="kIllegalSuperCallError">Illegal super expression found in method %1.
  172. <description><![CDATA[
  173. See the <a href="#note">note</a> at the bottom of this table.&#42;
  174. ]]></description></error>
  175. <!-- <error id="1036" label="kUncaughtExceptionWarning">The VM exited due to an uncaught exception.</error> -->
  176. <error id="1037" label="kCannotAssignToMethodError">Cannot assign to a method %1 on %2.
  177. <description><![CDATA[
  178. See the <a href="#note">note</a> at the bottom of this table.&#42;
  179. ]]></description></error>
  180. <error id="1038" label="kRedefinedError">%1 is already defined.
  181. <description><![CDATA[
  182. You cannot declare a variable or function with the same identifier name more than once
  183. within the same scope.
  184. In ActionScript 3.0, different code blocks (such as those used in two <code>for</code> loops
  185. in the same <code>function</code> definition) are considered to be in the same scope.
  186. See the <a href="#note">note</a> at the bottom of this table.&#42;
  187. ]]></description></error>
  188. <error id="1039" label="kCannotVerifyUntilReferencedError">Cannot verify method until it is referenced.
  189. <description><![CDATA[
  190. See the <a href="#note">note</a> at the bottom of this table.&#42;
  191. ]]></description></error>
  192. <error id="1040" label="kCantUseInstanceofOnNonObjectError">The right-hand side of instanceof must be a class or function.
  193. <description><![CDATA[
  194. The expression on the right side of the <code>instanceof</code> operator must be a class or function.
  195. ]]></description></error>
  196. <error id="1041" label="kIsTypeMustBeClassError">The right-hand side of operator must be a class.
  197. <description><![CDATA[
  198. The expression on the right side of the <code>is</code> operator must be a class.
  199. ]]></description></error>
  200. <error id="1042" label="kInvalidMagicError">Not an ABC file. major_version=%1 minor_version=%2.
  201. <description><![CDATA[
  202. You are attempting to use an invalid file with the player: the tool that generates the SWF may be out of date or the SWF itself may be corrupt.
  203. ]]></description></error>
  204. <error id="1043" label="kInvalidCodeLengthError">Invalid code_length=%1.
  205. <description><![CDATA[
  206. See the <a href="#note">note</a> at the bottom of this table.&#42;
  207. ]]></description></error>
  208. <error id="1044" label="kInvalidMethodInfoFlagsError">MethodInfo-%1 unsupported flags=%2.
  209. <description><![CDATA[
  210. See the <a href="#note">note</a> at the bottom of this table.&#42;
  211. ]]></description></error>
  212. <error id="1045" label="kUnsupportedTraitsKindError">Unsupported traits kind=%1.
  213. <description><![CDATA[
  214. See the <a href="#note">note</a> at the bottom of this table.&#42;
  215. ]]></description></error>
  216. <error id="1046" label="kMethodInfoOrderError">MethodInfo-%1 referenced before definition.
  217. <description><![CDATA[
  218. See the <a href="#note">note</a> at the bottom of this table.&#42;
  219. ]]></description></error>
  220. <error id="1047" label="kMissingEntryPointError">No entry point was found.
  221. <description><![CDATA[
  222. See the <a href="#note">note</a> at the bottom of this table.&#42;
  223. ]]></description></error>
  224. <!--<error id="1048" label="kNativeMethodNotFoundError">Native method not found: %a.</error>-->
  225. <error id="1049" label="kPrototypeTypeError">Prototype objects must be vanilla Objects.
  226. <description><![CDATA[
  227. See the <a href="#note">note</a> at the bottom of this table.&#42;
  228. ]]></description></error>
  229. <error id="1050" label="kConvertToPrimitiveError">Cannot convert %1 to primitive.
  230. <description><![CDATA[
  231. See the <a href="#note">note</a> at the bottom of this table.&#42;
  232. ]]></description></error>
  233. <error id="1051" label="kIllegalEarlyBindingError">Illegal early binding access to %1.
  234. <description><![CDATA[
  235. See the <a href="#note">note</a> at the bottom of this table.&#42;
  236. ]]></description></error>
  237. <error id="1052" label="kInvalidURIError">Invalid URI passed to %1 function.
  238. <description><![CDATA[
  239. See the <a href="#note">note</a> at the bottom of this table.&#42;
  240. ]]></description></error>
  241. <error id="1053" label="kIllegalOverrideError">Illegal override of %1 in %2.
  242. <description><![CDATA[
  243. See the <a href="#note">note</a> at the bottom of this table.&#42;
  244. ]]></description></error>
  245. <error id="1054" label="kIllegalExceptionHandlerError">Illegal range or target offsets in exception handler.
  246. <description><![CDATA[
  247. See the <a href="#note">note</a> at the bottom of this table.&#42;
  248. ]]></description></error>
  249. <!-- obsolete
  250. <error id="1055" label="kHasNoPropertiesTypeError">%S has no properties</error>
  251. -->
  252. <error id="1056" label="kWriteSealedError">Cannot create property %1 on %2.
  253. <description><![CDATA[
  254. You are trying to assign a value to a nonexistent property on an instance of a non-dynamic
  255. class. This is only possible for instances of dynamic classes]]></description></error>
  256. <error id="1057" label="kIllegalSlotError">%1 can only contain methods.
  257. <description><![CDATA[
  258. See the <a href="#note">note</a> at the bottom of this table.&#42;
  259. ]]></description></error>
  260. <error id="1058" label="kIllegalOperandTypeError">Illegal operand type: %1 must be %2.
  261. <description><![CDATA[
  262. See the <a href="#note">note</a> at the bottom of this table.&#42;
  263. ]]></description></error>
  264. <error id="1059" label="kClassInfoOrderError">ClassInfo-%1 is referenced before definition.
  265. <description><![CDATA[
  266. See the <a href="#note">note</a> at the bottom of this table.&#42;
  267. ]]></description></error>
  268. <error id="1060" label="kClassInfoExceedsCountError">ClassInfo %1 exceeds class_count=%2.
  269. <description><![CDATA[
  270. See the <a href="#note">note</a> at the bottom of this table.&#42;
  271. ]]></description></error>
  272. <error id="1061" label="kNumberOutOfRangeError">The value %1 cannot be converted to %2 without losing precision.
  273. <description><![CDATA[
  274. This error appears if you attempt to assign a decimal number to a property that has data type
  275. int.
  276. <p>This error also appears for out-of-range assignments, such as the following:</p>
  277. <pre><code>var m0:int = 2147483648; // int.MAX_VALUE == 2147483647</code></pre>
  278. <p>You can also see this error when using the bitwise left shift operator (&lt&lt).
  279. For example, consider the following code:</p>
  280. <pre><code>var m0:uint = 0xFF;
  281. var m1:uint = m0&lt&lt24;</code></pre>
  282. <p>The result of left shift operator (&lt&lt) is interpreted as a 32-bit two's complement number
  283. with sign. In the example, the result is a negative value, which causes the error when assigned
  284. to the uint typed property. A workaround is the following:</p>
  285. <pre><code>var m0:uint = 0xFF;
  286. var m1:uint = uint(m0&lt;&lt;24);</code></pre>
  287. ]]></description></error>
  288. <!--<error id="1062" label="kPackageCircularityError">Package %a imported while being defined</error>-->
  289. <error id="1063" label="kWrongArgumentCountError">Argument count mismatch on %1. Expected %2, got %3.</error>
  290. <error id="1064" label="kCannotCallMethodAsConstructor">Cannot call method %1 as constructor.
  291. <description><![CDATA[
  292. Extracted methods are permanently bound to the object they are extracted from.
  293. Therefore, they can not later be called as a constructor. For example, the following
  294. creates function <code>f()</code> in Class A:
  295. <pre><code>class A {
  296. function f() {}
  297. }</code></pre>
  298. In the following code, extracting the function causes no error. However, creating
  299. a new instance of the function causes an error.
  300. <pre><code>var a = new A()
  301. var m = a.f // extract f, don't call it
  302. m() // same as a.f()
  303. new m() // causes this error</code></pre>
  304. ]]></description></error>
  305. <error id="1065" label="kUndefinedVarError">Variable %1 is not defined.
  306. <description><![CDATA[
  307. You are using an undefined lexical reference. For example, in the following statements, the
  308. statement <code>trace(x)</code> generates an error because <code>x</code> is undefined. However, the
  309. statement <code>trace(y)</code> doesn't generate an error because <code>y</code> is defined:
  310. <pre><code>trace("hello world")
  311. trace(x) // x is undefined
  312. var y
  313. trace(y) // No error, y is defined.</code></pre>
  314. ]]></description></error>
  315. <error id="1066" label="kFunctionConstructorError">The form function('function body') is not supported.
  316. <description><![CDATA[
  317. Unlike JavaScript, Flash does not compile code on-the-fly using <code>eval()</code> and
  318. <code>function()</code>. Thus, calling these as a constructor in ActionScript 3.0 generates this error.
  319. ]]></description></error>
  320. <error id="1067" label="kIllegalNativeMethodBodyError">Native method %1 has illegal method body.
  321. <description><![CDATA[
  322. See the <a href="#note">note</a> at the bottom of this table.&#42;
  323. ]]></description></error>
  324. <error id="1068" label="kCannotMergeTypesError">%1 and %2 cannot be reconciled.
  325. <description><![CDATA[
  326. See the <a href="#note">note</a> at the bottom of this table.&#42;
  327. ]]></description></error>
  328. <error id="1069" label="kReadSealedError">Property %1 not found on %2 and there is no default value.
  329. <description><![CDATA[
  330. You are referencing an undefined property on a non-dynamic class instance. For example, the following generates this error when it references property
  331. <code>x</code>, which is not defined and cannot be created dynamically:
  332. <pre><code>class A {} // sealed class, not dynamic
  333. trace(new A().x) // no property x defined on A, and A is not dynamic</code></pre>
  334. ]]></description></error>
  335. <error id="1070" label="kCallNotFoundError">Method %1 not found on %2
  336. <description><![CDATA[
  337. You are using a <code>super</code> statement to call a function, but the function doesn't exist in the super class.
  338. For example, the following code generates the error: <pre><code>class A() {}
  339. class B extends A {
  340. function f() { trace(super.f()); } // error 1070, there is no f on A
  341. }</code></pre>
  342. ]]></description></error>
  343. <error id="1071" label="kAlreadyBoundError">Function %1 has already been bound to %2.</error>
  344. <error id="1072" label="kZeroDispIdError">Disp_id 0 is illegal.
  345. <description><![CDATA[
  346. See the <a href="#note">note</a> at the bottom of this table.&#42;
  347. ]]></description></error>
  348. <error id="1073" label="kDuplicateDispIdError">Non-override method %1 replaced because of duplicate disp_id %2.
  349. <description><![CDATA[
  350. See the <a href="#note">note</a> at the bottom of this table.&#42;
  351. ]]></description></error>
  352. <error id="1074" label="kConstWriteError">Illegal write to read-only property %1 on %2.</error>
  353. <error id="1075" label="kMathNotFunctionError">Math is not a function.
  354. <description><![CDATA[
  355. You are trying to call <code>math()</code> as a function, but the Math class is a class with static methods.
  356. ]]></description></error>
  357. <error id="1076" label="kMathNotConstructorError">Math is not a constructor.
  358. <description><![CDATA[
  359. You can not instantiate the Math class.
  360. ]]></description></error>
  361. <error id="1077" label="kWriteOnlyError">Illegal read of write-only property %1 on %2.</error>
  362. <error id="1078" label="kIllegalOpMultinameError">Illegal opcode/multiname combination: %1&lt;%2&gt;.
  363. <description><![CDATA[
  364. See the <a href="#note">note</a> at the bottom of this table.&#42;
  365. ]]></description></error>
  366. <error id="1079" label="kIllegalNativeMethodError">Native methods are not allowed in loaded code.
  367. <description><![CDATA[
  368. See the <a href="#note">note</a> at the bottom of this table.&#42;
  369. ]]></description></error>
  370. <error id="1080" label="kIllegalNamespaceError">Illegal value for namespace.
  371. <description><![CDATA[
  372. See the <a href="#note">note</a> at the bottom of this table.&#42;
  373. ]]></description></error>
  374. <error id="1081" label="kReadSealedErrorNs">Property %1 not found on %2 and there is no default value.</error>
  375. <!--<error id="1081" label="kIllegalMultinameCallError">Illegal call to %1</error>-->
  376. <error id="1082" label="kNoDefaultNamespaceError">No default namespace has been set.
  377. <description><![CDATA[
  378. See the <a href="#note">note</a> at the bottom of this table.&#42;
  379. ]]></description></error>
  380. <error id="1083" label="kXMLPrefixNotBound">The prefix "%1" for element "%2" is not bound.
  381. <description><![CDATA[
  382. An attribute name or element name has a prefix but no matching namespace was
  383. found. This statement generates an error because there is no <code>foo</code>
  384. namespace to match <code>foo:x</code>:<pre/>&lt;foo:x xmlns:clowns='http://circuscenter.org'&gt;</pre>
  385. ]]></description></error>
  386. <error id="1084" label="kXMLBadQName">Element or attribute ("%1") does not match QName production: QName::=(NCName':')?NCName.
  387. <description><![CDATA[
  388. You have <code>foo: </code> or <code>:foo</code> as an element or attribute name, but there is nothing
  389. on the other side of the colon.
  390. ]]></description></error>
  391. <error id="1085" label="kXMLUnterminatedElementTag">The element type "%1" must be terminated by the matching end-tag "&lt;/%2&gt;".</error>
  392. <error id="1086" label="kXMLOnlyWorksWithOneItemLists">The %1 method only works on lists containing one item.
  393. <description><![CDATA[
  394. The XMLList class propagates the XML-specific functions to one child if it has only one
  395. item in its list. If more than one item is in the list, the routines fail with this
  396. error. This happens for the following XMLList functions that mimic XML functions:
  397. <p><code>addNamespace</code>, <code>appendChild</code>, <code>childIndex</code>,
  398. <code>inScopeNamespaces</code>, <code>insertChildAfter</code>, <code>insertChildBefore</code>,
  399. <code>name</code>, <code>namespace</code>, <code>localName</code>, <code>namespaceDeclarations</code>,
  400. <code>nodeKind</code>, <code>prependChild</code>, <code>removeNamespace</code>, <code>replace</code>,
  401. <code>setChildren</code>, <code>setLocalName</code>, <code>setName</code>, and <code>setNamespace.
  402. ]]></description></error>
  403. <error id="1087" label="kXMLAssignmentToIndexedXMLNotAllowed">Assignment to indexed XML is not allowed.</error>
  404. <error id="1088" label="kXMLMarkupMustBeWellFormed">The markup in the document following the root element must be well-formed.
  405. <description><![CDATA[
  406. These are possible causes of this error:
  407. <ul>
  408. <li>Parsing an XMLList style object as XML</li>
  409. <li>Misbalanced strings</li>
  410. </ul>
  411. ]]></description></error>
  412. <error id="1089" label="kXMLAssigmentOneItemLists">Assignment to lists with more than one item is not supported.</error>
  413. <error id="1090" label="kXMLMalformedElement">XML parser failure: element is malformed.
  414. <description><![CDATA[
  415. An element name is malformed. This example of an element name is malformed because a
  416. trailing right angle bracket <code>></code> is missing:
  417. <pre>&lt;a/&gt;&lt;b&gt;&lt;/b</pre> ]]></description></error>
  418. <error id="1091" label="kXMLUnterminatedCData">XML parser failure: Unterminated CDATA section.</error>
  419. <error id="1092" label="kXMLUnterminatedXMLDecl">XML parser failure: Unterminated XML declaration.</error>
  420. <error id="1093" label="kXMLUnterminatedDocTypeDecl">XML parser failure: Unterminated DOCTYPE declaration.</error>
  421. <error id="1094" label="kXMLUnterminatedComment">XML parser failure: Unterminated comment.</error>
  422. <error id="1095" label="kXMLUnterminatedAttribute">XML parser failure: Unterminated attribute.</error>
  423. <error id="1096" label="kXMLUnterminatedElement">XML parser failure: Unterminated element.</error>
  424. <error id="1097" label="kXMLUnterminatedProcessingInstruction">XML parser failure: Unterminated processing instruction.</error>
  425. <error id="1098" label="kXMLNamespaceWithPrefixAndNoURI">Illegal prefix %1 for no namespace.
  426. <description><![CDATA[
  427. The namespace constructor throws this error if you try to pass in an empty URI with a
  428. non-empty prefix as in this example:
  429. <pre>ns = new Namespace ("prefix", "");
  430. ]]></description></error>
  431. <!--<error id="1099" label="kNullArgumentError">Argument %s cannot be null.</error>-->
  432. <error id="1100" label="kRegExpFlagsArgumentError">Cannot supply flags when constructing one RegExp from another.
  433. <description><![CDATA[
  434. Creating a new regular expression from an existing one also copies its flags. To create a regular expression with
  435. different flags, use the <code>new</code> operator and set the flags as desired. For example, this statement
  436. creates a regular expression and specifies flag settings:
  437. <pre><code>var re:RegExp = new RegExp("ali", /s)</code></pre>
  438. Alternatively, this statement creates a regular expression that has the same flags as re:
  439. <pre><code>var re2:RegExp = new RegExp(re, ...)</code></pre> ]]></description></error>
  440. <error id="1101" label="kNoScopeError">Cannot verify method %1 with unknown scope.
  441. <description><![CDATA[
  442. See the <a href="#note">note</a> at the bottom of this table.&#42;
  443. ]]></description></error>
  444. <error id="1102" label="kIllegalDefaultValue">Illegal default value for type %1.
  445. <description><![CDATA[
  446. See the <a href="#note">note</a> at the bottom of this table.&#42;
  447. ]]></description></error>
  448. <error id="1103" label="kCannotExtendFinalClass">Class %1 cannot extend final base class.
  449. <description><![CDATA[
  450. See the <a href="#note">note</a> at the bottom of this table.&#42;
  451. ]]></description></error>
  452. <error id="1104" label="kXMLDuplicateAttribute">Attribute "%1" was already specified for element "%2".</error>
  453. <!--<error id="1105" label="kStringIndexOutOfBoundsError">The string index %d is out of bounds; must be in range %d to %d.</error>-->
  454. <!--<error id="1106" label="kInvalidRangeError">The range specified is invalid.</error>-->
  455. <error id="1107" label="kCorruptABCError">The ABC data is corrupt, attempt to read out of bounds.
  456. <description><![CDATA[
  457. See the <a href="#note">note</a> at the bottom of this table.&#42;
  458. ]]></description></error>
  459. <error id="1108" label="kInvalidBaseClassError">The OP_newclass opcode was used with the incorrect base class.
  460. <description><![CDATA[
  461. See the <a href="#note">note</a> at the bottom of this table.&#42;
  462. ]]></description></error>
  463. <error id="1109" label="kDanglingFunctionError">Attempt to directly call unbound function %1 from method %2.
  464. <description><![CDATA[
  465. See the <a href="#note">note</a> at the bottom of this table.&#42;
  466. ]]></description></error>
  467. <error id="1110" label="kCannotExtendError">%1 cannot extend %2.
  468. <description><![CDATA[
  469. See the <a href="#note">note</a> at the bottom of this table.&#42;
  470. ]]></description></error>
  471. <error id="1111" label="kCannotImplementError">%1 cannot implement %2.
  472. <description><![CDATA[
  473. See the <a href="#note">note</a> at the bottom of this table.&#42;
  474. ]]></description></error>
  475. <error id="1112" label="kCoerceArgumentCountError">Argument count mismatch on class coercion. Expected 1, got %1.</error>
  476. <error id="1113" label="kInvalidNewActivationError">OP_newactivation used in method without NEED_ACTIVATION flag.
  477. <description><![CDATA[
  478. See the <a href="#note">note</a> at the bottom of this table.&#42;
  479. ]]></description></error>
  480. <error id="1114" label="kNoGlobalScopeError">OP_getglobalslot or OP_setglobalslot used with no global scope.
  481. <description><![CDATA[
  482. See the <a href="#note">note</a> at the bottom of this table.&#42;
  483. ]]></description></error>
  484. <error id="1115" label="kNotConstructorError">%1 is not a constructor.</error>
  485. <error id="1116" label="kApplyError">second argument to Function.prototype.apply must be an array.</error>
  486. <error id="1117" label="kXMLInvalidName">Invalid XML name: %1.</error>
  487. <error id="1118" label="kXMLIllegalCyclicalLoop">Illegal cyclical loop between nodes.</error>
  488. <error id="1119" label="kDeleteTypeError">Delete operator is not supported with operand of type %1.</error>
  489. <error id="1120" label="kDeleteSealedError">Cannot delete property %1 on %2.</error>
  490. <error id="1121" label="kDuplicateMethodBodyError">Method %1 has a duplicate method body.</error>
  491. <error id="1122" label="kIllegalInterfaceMethodBodyError">Interface method %1 has illegal method body.</error>
  492. <error id="1123" label="kFilterError">Filter operator not supported on type %1.</error>
  493. <error id="1124" label="kInvalidHasNextError">OP_hasnext2 requires object and index to be distinct registers.</error>
  494. <error id="1125" label="kOutOfRangeError">The index %1 is out of range %2.</error>
  495. <error id="1126" label="kVectorFixedError">Cannot change the length of a fixed Vector.</error>
  496. <error id="1127" label="kTypeAppOfNonParamType">Type application attempted on a non-parameterized type.</error>
  497. <error id="1128" label="kWrongTypeArgCountError">Incorrect number of type parameters for %1. Expected %2, got %3.</error>
  498. <error id="1129" label="kJSONCyclicStructure">Cyclic structure cannot be converted to JSON string.</error>
  499. <!-- id 1130 was allocated and later became unnecessary. -->
  500. <error id="1131" label="kJSONInvalidReplacer">Replacer argument to JSON stringifier must be an array or a two parameter function.</error>
  501. <error id="1132" label="kJSONInvalidParseInput">Invalid JSON parse input.</error>
  502. <!-- The following errors are specific to the AVM2 command-line shell.-->
  503. <error id="1500" hidden="true" label="kFileOpenError">Error occurred opening file %1.</error>
  504. <error id="1501" hidden="true" label="kFileWriteError">Error occurred writing to file %1.
  505. <description><![CDATA[
  506. The file you are writing to cannot be opened. Possibly the filename contains an error, the file is read-only, or
  507. you do not have access privileges.
  508. ]]></description>
  509. </error>
  510. <error id="1502" label="kScriptTimeoutError">A script has executed for longer than the default timeout period of 15 seconds.
  511. <description><![CDATA[
  512. A script executed after the timeout period. (The default timeout period is 15 seconds.) After this error occurs, the
  513. script can continue to execute for 15 seconds more, after which the script terminates and throws run-time error number 1503 (A script failed to exit after 30 seconds and was terminated.)
  514. ]]></description>
  515. </error>
  516. <error id="1503" label="kScriptTerminatedError">A script failed to exit after 30 seconds and was terminated.
  517. <description><![CDATA[
  518. The script was still executing after 30 seconds. Flash Player first throws run-time error number 1502 (A script has executed for longer than the default timeout period of 15 seconds.) if the script executed more than 15
  519. seconds, which is the default timeout period. This error occurs 15 seconds after Error 1502 occurs.
  520. ]]></description></error>
  521. <error id="1504" hidden="true" label="kEndOfFileError">End of file.
  522. <description><![CDATA[
  523. Flash Player unexpectedly encountered the end of the file. Possibly the file was not saved correctly or Flash Player expected more data
  524. in the file.
  525. ]]></description>
  526. </error>
  527. <error id="1505" hidden="true" label="kStringIndexOutOfBoundsError">The string index %1 is out of bounds; must be in range %2 to %3.</error>
  528. <error id="1506" hidden="true" label="kInvalidRangeError">The specified range is invalid.
  529. <description><![CDATA[
  530. The method's <code>start</code> parameter is greater than its <code>end</code> parameter.
  531. ]]></description></error>
  532. <error id="1507" label="kNullArgumentError">Argument %1 cannot be null.</error>
  533. <error id="1508" label="kInvalidArgumentError">The value specified for argument %1 is invalid.
  534. <description><![CDATA[
  535. You are possibly trying to pass the wrong data type. For example, the code
  536. <pre><code>public function doSomething(const:int):void {
  537. }
  538. this ["doSomething"] ("str")</code></pre>
  539. generates an error at runtime because <code>doSomething</code> is cast as an int data type. ]]></description></error>
  540. <error id="1510" label="kArrayFilterNonNullObjectError">When the callback argument is a method of a class, the optional this argument must be null.</error>
  541. <error id="1511" label="kWorkerAlreadyStarted">Worker is already started.</error>
  542. <error id="1512" label="kFailedWorkerCannotBeRestarted">Starting a worker that already failed is not supported.</error>
  543. <error id="1513" label="kWorkerTerminated">Worker has terminated."</error>
  544. <error id="1514" label="kMutextNotLocked">unlock() with no preceding matching lock().</error>
  545. <error id="1515" label="kConditionInvalidTimeout">Invalid condition timeout value: %1.</error>
  546. <error id="1516" label="kConditionCannotNotify">Condition cannot notify if associated mutex is not owned.</error>
  547. <error id="1517" label="kConditionCannotNotifyAll">Condition cannot notifyAll if associated mutex is not owned.</error>
  548. <error id="1518" label="kConditionCannotWait">Condition cannot wait if associated mutex is not owned.</error>
  549. <error id="1519" label="kConditionCannotBeInitialized">Condition cannot be initialized.</error>
  550. <error id="1520" label="kMutexCannotBeInitialized">Mutex cannot be initialized.</error>
  551. <error id="1521" label="kWorkerIllegalCallToStart">Only the worker's parent may call start.</error>
  552. <error id="2004" label="kInvalidParamError">One of the parameters is invalid.</error>
  553. <error id="2006" label="kParamRangeError">The supplied index is out of bounds.</error>
  554. <error id="2007" label="kNullPointerError">Parameter %1 must be non-null.</error>
  555. <error id="2008" label="kInvalidEnumError">Parameter %1 must be one of the accepted values.</error>
  556. <error id="2012" label="kCantInstantiateError">%1 class cannot be instantiated.</error>
  557. <error id="2030" label="kEOFError">End of file was encountered.</error>
  558. <error id="2058" label="kCompressedDataError">There was an error decompressing the data.</error>
  559. <error id="2085" label="kEmptyStringError">Parameter %1 must be non-empty string.</error>
  560. <error id="2088" label="kProxyGetPropertyError">The Proxy class does not implement getProperty. It must be overridden by a subclass.</error>
  561. <error id="2089" label="kProxySetPropertyError">The Proxy class does not implement setProperty. It must be overridden by a subclass.</error>
  562. <error id="2090" label="kProxyCallPropertyError">The Proxy class does not implement callProperty. It must be overridden by a subclass.</error>
  563. <error id="2091" label="kProxyHasPropertyError">The Proxy class does not implement hasProperty. It must be overridden by a subclass.</error>
  564. <error id="2092" label="kProxyDeletePropertyError">The Proxy class does not implement deleteProperty. It must be overridden by a subclass.</error>
  565. <error id="2093" label="kProxyGetDescendantsError">The Proxy class does not implement getDescendants. It must be overridden by a subclass.</error>
  566. <error id="2105" label="kProxyNextNameIndexError">The Proxy class does not implement nextNameIndex. It must be overridden by a subclass.</error>
  567. <error id="2106" label="kProxyNextNameError">The Proxy class does not implement nextName. It must be overridden by a subclass.</error>
  568. <error id="2107" label="kProxyNextValueError">The Proxy class does not implement nextValue. It must be overridden by a subclass.</error>
  569. <error id="2108" label="kInvalidArrayLengthError">The value %1 is not a valid Array length.</error>
  570. <error id="2173" label="kReadExternalNotImplementedError">Unable to read object in stream. The class %1 does not implement flash.utils.IExternalizable but is aliased to an externalizable class.</error>
  571. </errors>