PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/views/docs/api/0.6.3/Sammy.Application._methods_.error.html

https://github.com/kfpanda/sammyjs-org
HTML | 37 lines | 35 code | 2 blank | 0 comment | 0 complexity | e8a28d43f2de00d8994498886862e36b MD5 | raw file
 1<div class='individual meth' id='Sammy.Application-error'>
 2  <a href='/docs/api/0.6.3/'>
 3    <strong>&laquo; Back</strong>
 4  </a>
 5  <h3>
 6    <strong>Sammy.Application</strong>
 7    <a href='Sammy.Application._methods_.error'>error</a>
 8    <span>
 9      (
10      <em>message, original_error</em>
11      )
12    </span>
13  </h3>
14  <div class='links'>
15    <a href='Sammy.Application._methods_.error#comments'>Comments</a>
16    |
17    <a href='https://github.com/quirkey/sammy/tree/v0.6.3/lib/sammy.js#L1143' target='all'>Show in GitHub</a>
18  </div><div class='doc'><p>The base error handler takes a string <code>message</code> and an <code>Error</code>&#x000A;object. If <code>raise_errors</code> is set to <code>true</code> on the app level,&#x000A;this will re-throw the error to the browser. Otherwise it will send the error&#x000A;to <code>log()</code>. Override this method to provide custom error handling&#x000A;e.g logging to a server side component or displaying some feedback to the&#x000A;user.</p></div><div id='comments'>
19<div id="disqus_thread"></div>
20<script type="text/javascript">
21    var disqus_shortname = 'sammyjsorg'; // required: replace example with your forum shortname
22
23    // The following are highly recommended additional parameters. Remove the slashes in front to use.
24    var disqus_identifier = "sammyjsdocs-0.6.3-Sammy.Application-error";
25    var disqus_url = 'http://www.sammyjs.org/docs/api/0.6.3/Sammy.Application._methods_.error';
26
27    /* * * DON'T EDIT BELOW THIS LINE * * */
28    (function() {
29        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
30        dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
31        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
32    })();
33</script>
34<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
35<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
36  </div>
37</div>