You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
└ bot.Error</code></pre></header><section><p>Error extension that includes error status codes from the WebDriver wire
protocol:
http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes<h2>Constructor</h2><divclass="ctor wrap-details public"><div><divclass="ctor"><spanclass="member">bot.Error <spanclass="args">( code, opt_message )</span></span></div><divclass="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>code: <codeclass="type">!<ahref="enum_bot_ErrorCode.html">bot.ErrorCode</a></code><dd>The error's status code.<dt>opt_message: <codeclass="type"><ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>=</code><dd>Optional error message.</dl></table></div></div></div></section><section><h2>Enumerations</h2><divclass="type-summary"><table><tbody><tr><td><dl><dt><ahref="enum_bot_Error_State.html">bot.Error.State</a><dd>Status strings enumerated in the W3C WebDriver working draft.</dl></table></div></section><divid="visibility-controls"><b>Show:</b><labelfor="show-public"><span><inputtype="checkbox" id="show-public" checked/></span>Public</label><labelfor="show-protected"><span><inputtype="checkbox" id="show-protected"/></span>Protected</label><labelfor="show-private"><span><inputtype="checkbox" id="show-private"/></span>Private</label></div><sectionid="instance-methods"><h2>Instance Methods</h2><h3>Defined in <codeclass="type">bot.Error</code></h3><divclass="wrap-details public"><div><detailsclass="function"><summary><div><aclass="source" href="source/lib/atoms/error.js.src.html#l208">code »</a><spanclass="member"><aname="toString">toString</a><spanclass="args">( )</span> ⇒ <codeclass="type"><ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div></summary><divclass="info"><table><tbody><tr><th>Returns<tr><td><dl>he string representation of this error.</dl></table></div></details></div></div></section><sectionid="instance-properties"><h2>Instance Properties</h2><h3>Defined in <codeclass="type">bot.Error</code></h3><divclass="wrap-details public"><div><details><summary><div><aclass="source" href="source/lib/atoms/error.js.src.html#l203">code »</a><spanclass="member"><aname="isAutomationError">isAutomationError</a> : <codeclass="type"><ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Flag used for duck-typing when this code is embedded in a Firefox extension.
This is required since an Error thrown in one component and then reported
to another will fail instanceof checks in the second component.</summary></details></div></div><divclass="wrap-details public"><div><details><summary><div><aclass="source" href="source/lib/atoms/error.js.src.html#l90">code »</a><spanclass="member"><aname="state">state</a> : <codeclass="type"><ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div></summary></details></div></div></section><sectionid="static-properties"><h2>Static Properties</h2><divclass="wrap-details private"><div><details><summary><div><aclass="source" href="source/lib/atoms/error.js.src.html#l160">code »</a><spanclass="member"><aname="bot.Error.CODE_TO_STATE_">bot.Error.CODE_TO_STATE_</a> : <codeclass="type">!<ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>.<<ahref="enum_bot_ErrorCode.html">bot.ErrorCode</a>, <ahref="enum_bot_Error_State.html">bot.Error.State</a>></code></span></div><p>A map of error codes to state string.</summary></details></div></div><divclass="wrap-details public"><div><details><summary><div><aclass="source" href="source/lib/atoms/error.js.src.html#l81">code »</a><spanclass="member"><aname="bot.Error.superClass_">bot.Error.superClass_</a> : <codeclass="type"><ahref="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error">Error.prototype</a></code></span></div></summary></details></div></div></section></main><navid="topnav"><div><divid="menubutton"><labelfor="sidenav-toggle">Menu</label></div><formid="searchbox"><div><inputtype="search" placeholder="Search" tabindex="1"></div></form></div></nav><navid="sidenav"><inputtype="checkbox" id="sidenav-types-ctrl" /><inputtype="checkbox" id="sidenav-files-ctrl" /><inputtype="checkbox" id="sidenav-modules-ctrl" /><aid="sidenav-overview"><div><h4>Overview</h4></div></a><divid="sidenav-types"><labelfor="sidenav-types-ctrl"><h4>Types</h4></label><i>Loading</i></div><divid="sidenav-modules"><labelfor="sidenav-modules-ctrl"><h4>Modules</h4></label><i>Loading</i></div><divid="sidenav-files"><labelfor="sidenav-files-ctrl"><h4>Files</h4></label><i>Loading</i></div><ahref="license.html"><div><h4>License</h4></div></a></nav><divid="push-footer"></div></div><footer><ahref="https://github.com/jleyba/js-dossier">Generated by dossier</a></footer><scriptsrc="types.js"></script><scriptsrc="dossier.js"></script>