BlockPyFeedback.html 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Class: BlockPyFeedback</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Class: BlockPyFeedback</h1>
  17. <section>
  18. <header>
  19. <h2>BlockPyFeedback</h2>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h4 class="name" id="BlockPyFeedback"><span class="type-signature"></span>new BlockPyFeedback<span class="signature">(main, tag)</span><span class="type-signature"></span></h4>
  24. <div class="description">
  25. An object that manages the feedback area, where users are told the state of their
  26. program's execution and given guidance. Also manages the creation of the Trace Table.
  27. </div>
  28. <h5>This:</h5>
  29. <ul><li>{<a href="BlockPyFeedback.html">BlockPyFeedback</a>}</li></ul>
  30. <h5>Parameters:</h5>
  31. <table class="params">
  32. <thead>
  33. <tr>
  34. <th>Name</th>
  35. <th>Type</th>
  36. <th class="last">Description</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <tr>
  41. <td class="name"><code>main</code></td>
  42. <td class="type">
  43. <span class="param-type">Object</span>
  44. </td>
  45. <td class="description last">The main BlockPy instance</td>
  46. </tr>
  47. <tr>
  48. <td class="name"><code>tag</code></td>
  49. <td class="type">
  50. <span class="param-type">HTMLElement</span>
  51. </td>
  52. <td class="description last">The HTML object this is attached to.</td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. <dl class="details">
  57. <dt class="tag-source">Source:</dt>
  58. <dd class="tag-source"><ul class="dummy"><li>
  59. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line10">line 10</a>
  60. </li></ul></dd>
  61. </dl>
  62. </div>
  63. <h3 class="subsection-title">Methods</h3>
  64. <h4 class="name" id="buildTraceTable"><span class="type-signature"></span>buildTraceTable<span class="signature">()</span><span class="type-signature"></span></h4>
  65. <div class="description">
  66. Reload the trace table, showing it if it was hidden and
  67. resetting its position to the last step.
  68. </div>
  69. <dl class="details">
  70. <dt class="tag-source">Source:</dt>
  71. <dd class="tag-source"><ul class="dummy"><li>
  72. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line30">line 30</a>
  73. </li></ul></dd>
  74. </dl>
  75. <h4 class="name" id="clear"><span class="type-signature"></span>clear<span class="signature">()</span><span class="type-signature"></span></h4>
  76. <div class="description">
  77. Clears any output currently in the feedback area. Also resets the printer and
  78. any highlighted lines in the editor.
  79. </div>
  80. <dl class="details">
  81. <dt class="tag-source">Source:</dt>
  82. <dd class="tag-source"><ul class="dummy"><li>
  83. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line53">line 53</a>
  84. </li></ul></dd>
  85. </dl>
  86. <h4 class="name" id="clearEditorErrors"><span class="type-signature"></span>clearEditorErrors<span class="signature">()</span><span class="type-signature"></span></h4>
  87. <div class="description">
  88. Clears any errors from the editor area.
  89. </div>
  90. <dl class="details">
  91. <dt class="tag-source">Source:</dt>
  92. <dd class="tag-source"><ul class="dummy"><li>
  93. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line65">line 65</a>
  94. </li></ul></dd>
  95. </dl>
  96. <h4 class="name" id="complete"><span class="type-signature"></span>complete<span class="signature">()</span><span class="type-signature"></span></h4>
  97. <div class="description">
  98. Mark this problem as completed for the student. This will appear in the Feedback area,
  99. and will also unhighlight lines in the editor and log to the server.
  100. </div>
  101. <dl class="details">
  102. <dt class="tag-source">Source:</dt>
  103. <dd class="tag-source"><ul class="dummy"><li>
  104. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line95">line 95</a>
  105. </li></ul></dd>
  106. </dl>
  107. <h4 class="name" id="editorError"><span class="type-signature"></span>editorError<span class="signature">(original, message, line)</span><span class="type-signature"></span></h4>
  108. <div class="description">
  109. Show an error message related to a problem with the editor. This will appear in
  110. the Feedback area, the Printer, and also log to the server. The relevant line of
  111. code or block will also be highlighted.
  112. </div>
  113. <h5>Parameters:</h5>
  114. <table class="params">
  115. <thead>
  116. <tr>
  117. <th>Name</th>
  118. <th>Type</th>
  119. <th class="last">Description</th>
  120. </tr>
  121. </thead>
  122. <tbody>
  123. <tr>
  124. <td class="name"><code>original</code></td>
  125. <td class="type">
  126. <span class="param-type">String</span>
  127. </td>
  128. <td class="description last">HTML content that represents the original error message generated by the system.</td>
  129. </tr>
  130. <tr>
  131. <td class="name"><code>message</code></td>
  132. <td class="type">
  133. <span class="param-type">String</span>
  134. </td>
  135. <td class="description last">HTML content that is a hopefully friendlier message for the user explaining the error.</td>
  136. </tr>
  137. <tr>
  138. <td class="name"><code>line</code></td>
  139. <td class="type">
  140. <span class="param-type">number</span>
  141. </td>
  142. <td class="description last">What line the error occurred on.</td>
  143. </tr>
  144. </tbody>
  145. </table>
  146. <dl class="details">
  147. <dt class="tag-source">Source:</dt>
  148. <dd class="tag-source"><ul class="dummy"><li>
  149. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line80">line 80</a>
  150. </li></ul></dd>
  151. </dl>
  152. <h4 class="name" id="emptyProgram"><span class="type-signature"></span>emptyProgram<span class="signature">(original, message, line)</span><span class="type-signature"></span></h4>
  153. <div class="description">
  154. Show "Empty Program" error, indicating the student hasn't written any code. This will appear in
  155. the Feedback area, the Printer, and also log to the server. The relevant line of
  156. code or block will also be highlighted.
  157. </div>
  158. <h5>Parameters:</h5>
  159. <table class="params">
  160. <thead>
  161. <tr>
  162. <th>Name</th>
  163. <th>Type</th>
  164. <th class="last">Description</th>
  165. </tr>
  166. </thead>
  167. <tbody>
  168. <tr>
  169. <td class="name"><code>original</code></td>
  170. <td class="type">
  171. <span class="param-type">String</span>
  172. </td>
  173. <td class="description last">HTML content that represents the original error message generated by the system.</td>
  174. </tr>
  175. <tr>
  176. <td class="name"><code>message</code></td>
  177. <td class="type">
  178. <span class="param-type">String</span>
  179. </td>
  180. <td class="description last">HTML content that is a hopefully friendlier message for the user explaining the error.</td>
  181. </tr>
  182. <tr>
  183. <td class="name"><code>line</code></td>
  184. <td class="type">
  185. <span class="param-type">number</span>
  186. </td>
  187. <td class="description last">What line the error occurred on.</td>
  188. </tr>
  189. </tbody>
  190. </table>
  191. <dl class="details">
  192. <dt class="tag-source">Source:</dt>
  193. <dd class="tag-source"><ul class="dummy"><li>
  194. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line221">line 221</a>
  195. </li></ul></dd>
  196. </dl>
  197. <h4 class="name" id="error"><span class="type-signature"></span>error<span class="signature">(html)</span><span class="type-signature"></span></h4>
  198. <div class="description">
  199. Raises a generic warning. This might not be used anymore.
  200. </div>
  201. <h5>Parameters:</h5>
  202. <table class="params">
  203. <thead>
  204. <tr>
  205. <th>Name</th>
  206. <th>Type</th>
  207. <th class="last">Description</th>
  208. </tr>
  209. </thead>
  210. <tbody>
  211. <tr>
  212. <td class="name"><code>html</code></td>
  213. <td class="type">
  214. <span class="param-type">String</span>
  215. </td>
  216. <td class="description last">Some HTML content to render to the user.</td>
  217. </tr>
  218. </tbody>
  219. </table>
  220. <dl class="details">
  221. <dt class="tag-source">Source:</dt>
  222. <dd class="tag-source"><ul class="dummy"><li>
  223. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line42">line 42</a>
  224. </li></ul></dd>
  225. </dl>
  226. <h4 class="name" id="finished"><span class="type-signature"></span>finished<span class="signature">()</span><span class="type-signature"></span></h4>
  227. <div class="description">
  228. Mark this problem as finished for the student. This will appear in the Feedback area,
  229. and will also unhighlight lines in the editor and log to the server.
  230. </div>
  231. <dl class="details">
  232. <dt class="tag-source">Source:</dt>
  233. <dd class="tag-source"><ul class="dummy"><li>
  234. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line108">line 108</a>
  235. </li></ul></dd>
  236. </dl>
  237. <h4 class="name" id="instructorFeedback"><span class="type-signature"></span>instructorFeedback<span class="signature">(original, message, line)</span><span class="type-signature"></span></h4>
  238. <div class="description">
  239. Show an incorrect code message related to a problem as specified by the Checker. This will appear in
  240. the Feedback area, the Printer, and also log to the server. The relevant line of
  241. code or block will also be highlighted.
  242. </div>
  243. <h5>Parameters:</h5>
  244. <table class="params">
  245. <thead>
  246. <tr>
  247. <th>Name</th>
  248. <th>Type</th>
  249. <th class="last">Description</th>
  250. </tr>
  251. </thead>
  252. <tbody>
  253. <tr>
  254. <td class="name"><code>original</code></td>
  255. <td class="type">
  256. <span class="param-type">String</span>
  257. </td>
  258. <td class="description last">HTML content that represents the original error message generated by the system.</td>
  259. </tr>
  260. <tr>
  261. <td class="name"><code>message</code></td>
  262. <td class="type">
  263. <span class="param-type">String</span>
  264. </td>
  265. <td class="description last">HTML content that is a hopefully friendlier message for the user explaining the error.</td>
  266. </tr>
  267. <tr>
  268. <td class="name"><code>line</code></td>
  269. <td class="type">
  270. <span class="param-type">number</span>
  271. </td>
  272. <td class="description last">What line the error occurred on.</td>
  273. </tr>
  274. </tbody>
  275. </table>
  276. <dl class="details">
  277. <dt class="tag-source">Source:</dt>
  278. <dd class="tag-source"><ul class="dummy"><li>
  279. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line201">line 201</a>
  280. </li></ul></dd>
  281. </dl>
  282. <h4 class="name" id="internalError"><span class="type-signature"></span>internalError<span class="signature">(original, message, line)</span><span class="type-signature"></span></h4>
  283. <div class="description">
  284. Show an error message related to a serious internal BlockPy program. Under normal conditions,
  285. this should never appear to a student. This will appear in
  286. the Feedback area, the Printer, and also log to the server. The relevant line of
  287. code or block will also be highlighted.
  288. </div>
  289. <h5>Parameters:</h5>
  290. <table class="params">
  291. <thead>
  292. <tr>
  293. <th>Name</th>
  294. <th>Type</th>
  295. <th class="last">Description</th>
  296. </tr>
  297. </thead>
  298. <tbody>
  299. <tr>
  300. <td class="name"><code>original</code></td>
  301. <td class="type">
  302. <span class="param-type">String</span>
  303. </td>
  304. <td class="description last">HTML content that represents the original error message generated by the system.</td>
  305. </tr>
  306. <tr>
  307. <td class="name"><code>message</code></td>
  308. <td class="type">
  309. <span class="param-type">String</span>
  310. </td>
  311. <td class="description last">HTML content that is a hopefully friendlier message for the user explaining the error.</td>
  312. </tr>
  313. <tr>
  314. <td class="name"><code>line</code></td>
  315. <td class="type">
  316. <span class="param-type">number</span>
  317. </td>
  318. <td class="description last">What line the error occurred on.</td>
  319. </tr>
  320. </tbody>
  321. </table>
  322. <dl class="details">
  323. <dt class="tag-source">Source:</dt>
  324. <dd class="tag-source"><ul class="dummy"><li>
  325. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line182">line 182</a>
  326. </li></ul></dd>
  327. </dl>
  328. <h4 class="name" id="noErrors"><span class="type-signature"></span>noErrors<span class="signature">()</span><span class="type-signature"></span></h4>
  329. <div class="description">
  330. This notifies the student that their code ran without errors, but that there was no
  331. Success raised by the Checker. This will appear in the Feedback area,
  332. and will also unhighlight lines in the editor and log to the server.
  333. </div>
  334. <dl class="details">
  335. <dt class="tag-source">Source:</dt>
  336. <dd class="tag-source"><ul class="dummy"><li>
  337. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line122">line 122</a>
  338. </li></ul></dd>
  339. </dl>
  340. <h4 class="name" id="prettyPrintError"><span class="type-signature"></span>prettyPrintError<span class="signature">()</span><span class="type-signature"></span></h4>
  341. <div class="description">
  342. Converts any kind of error (usually a Skulpt one) into a prettier version that's ready
  343. for users to see. If it's already a string, it is passed along unchanged. But Skulpt
  344. errors have to be processed more closely.
  345. </div>
  346. <dl class="details">
  347. <dt class="tag-source">Source:</dt>
  348. <dd class="tag-source"><ul class="dummy"><li>
  349. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line234">line 234</a>
  350. </li></ul></dd>
  351. </dl>
  352. <h4 class="name" id="printError"><span class="type-signature"></span>printError<span class="signature">(error)</span><span class="type-signature"></span></h4>
  353. <div class="description">
  354. Print an error to the printers -- the on screen one and the browser one. This
  355. will attempt to provide extra explanation and context for an error.
  356. Notice that this is largely for Run-time errors that will be thrown when the code
  357. is executed, as opposed to ones raised elsewhere in the environment.
  358. </div>
  359. <h5>Parameters:</h5>
  360. <table class="params">
  361. <thead>
  362. <tr>
  363. <th>Name</th>
  364. <th>Type</th>
  365. <th class="last">Description</th>
  366. </tr>
  367. </thead>
  368. <tbody>
  369. <tr>
  370. <td class="name"><code>error</code></td>
  371. <td class="type">
  372. <span class="param-type">String</span>
  373. </td>
  374. <td class="description last">The error message to be analyzed and printed.</td>
  375. </tr>
  376. </tbody>
  377. </table>
  378. <dl class="details">
  379. <dt class="tag-source">Source:</dt>
  380. <dd class="tag-source"><ul class="dummy"><li>
  381. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line255">line 255</a>
  382. </li></ul></dd>
  383. </dl>
  384. <h4 class="name" id="semanticError"><span class="type-signature"></span>semanticError<span class="signature">(original, message, line)</span><span class="type-signature"></span></h4>
  385. <div class="description">
  386. Show an error message related to semantic error with the program (e.g., unused variable).
  387. This will appear in the Feedback area, the Printer, and also log to the server. The
  388. relevant line of code or block will also be highlighted.
  389. </div>
  390. <h5>Parameters:</h5>
  391. <table class="params">
  392. <thead>
  393. <tr>
  394. <th>Name</th>
  395. <th>Type</th>
  396. <th class="last">Description</th>
  397. </tr>
  398. </thead>
  399. <tbody>
  400. <tr>
  401. <td class="name"><code>original</code></td>
  402. <td class="type">
  403. <span class="param-type">String</span>
  404. </td>
  405. <td class="description last">HTML content that represents the original error message generated by the system.</td>
  406. </tr>
  407. <tr>
  408. <td class="name"><code>message</code></td>
  409. <td class="type">
  410. <span class="param-type">String</span>
  411. </td>
  412. <td class="description last">HTML content that is a hopefully friendlier message for the user explaining the error.</td>
  413. </tr>
  414. <tr>
  415. <td class="name"><code>line</code></td>
  416. <td class="type">
  417. <span class="param-type">number</span>
  418. </td>
  419. <td class="description last">What line the error occurred on.</td>
  420. </tr>
  421. </tbody>
  422. </table>
  423. <dl class="details">
  424. <dt class="tag-source">Source:</dt>
  425. <dd class="tag-source"><ul class="dummy"><li>
  426. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line160">line 160</a>
  427. </li></ul></dd>
  428. </dl>
  429. <h4 class="name" id="syntaxError"><span class="type-signature"></span>syntaxError<span class="signature">(original, message, line)</span><span class="type-signature"></span></h4>
  430. <div class="description">
  431. Show an error message related to syntax issue. This will appear in
  432. the Feedback area, the Printer, and also log to the server. The relevant line of
  433. code or block will also be highlighted.
  434. </div>
  435. <h5>Parameters:</h5>
  436. <table class="params">
  437. <thead>
  438. <tr>
  439. <th>Name</th>
  440. <th>Type</th>
  441. <th class="last">Description</th>
  442. </tr>
  443. </thead>
  444. <tbody>
  445. <tr>
  446. <td class="name"><code>original</code></td>
  447. <td class="type">
  448. <span class="param-type">String</span>
  449. </td>
  450. <td class="description last">HTML content that represents the original error message generated by the system.</td>
  451. </tr>
  452. <tr>
  453. <td class="name"><code>message</code></td>
  454. <td class="type">
  455. <span class="param-type">String</span>
  456. </td>
  457. <td class="description last">HTML content that is a hopefully friendlier message for the user explaining the error.</td>
  458. </tr>
  459. <tr>
  460. <td class="name"><code>line</code></td>
  461. <td class="type">
  462. <span class="param-type">number</span>
  463. </td>
  464. <td class="description last">What line the error occurred on.</td>
  465. </tr>
  466. </tbody>
  467. </table>
  468. <dl class="details">
  469. <dt class="tag-source">Source:</dt>
  470. <dd class="tag-source"><ul class="dummy"><li>
  471. <a href="feedback.js.html">feedback.js</a>, <a href="feedback.js.html#line140">line 140</a>
  472. </li></ul></dd>
  473. </dl>
  474. </article>
  475. </section>
  476. </div>
  477. <nav>
  478. <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BlockPy.html">BlockPy</a></li><li><a href="BlockPyCorgis.html">BlockPyCorgis</a></li><li><a href="BlockPyDialog.html">BlockPyDialog</a></li><li><a href="BlockPyEditor.html">BlockPyEditor</a></li><li><a href="BlockPyEngine.html">BlockPyEngine</a></li><li><a href="BlockPyEnglish.html">BlockPyEnglish</a></li><li><a href="BlockPyFeedback.html">BlockPyFeedback</a></li><li><a href="BlockPyHistory.html">BlockPyHistory</a></li><li><a href="BlockPyPresentation.html">BlockPyPresentation</a></li><li><a href="BlockPyPrinter.html">BlockPyPrinter</a></li><li><a href="BlockPyServer.html">BlockPyServer</a></li><li><a href="BlockPyToolbar.html">BlockPyToolbar</a></li><li><a href="LocalStorageWrapper.html">LocalStorageWrapper</a></li><li><a href="PythonToBlocks.html">PythonToBlocks</a></li></ul><h3>Global</h3><ul><li><a href="global.html#BlockPyInterface">BlockPyInterface</a></li><li><a href="global.html#cloneNode">cloneNode</a></li><li><a href="global.html#encodeHTML">encodeHTML</a></li><li><a href="global.html#expandArray">expandArray</a></li><li><a href="global.html#EXTENDED_ERROR_EXPLANATION">EXTENDED_ERROR_EXPLANATION</a></li><li><a href="global.html#indent">indent</a></li><li><a href="global.html#instructor_module">instructor_module</a></li><li><a href="global.html#prettyPrintDateTime">prettyPrintDateTime</a></li><li><a href="global.html#randomInteger">randomInteger</a></li><li><a href="global.html#set_button_loaded">set_button_loaded</a></li><li><a href="global.html#timerGuard">timerGuard</a></li></ul>
  479. </nav>
  480. <br class="clear">
  481. <footer>
  482. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Sun Mar 26 2017 09:45:04 GMT-0400 (Eastern Daylight Time)
  483. </footer>
  484. <script> prettyPrint(); </script>
  485. <script src="scripts/linenumber.js"> </script>
  486. </body>
  487. </html>