PageRenderTime 43ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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. // The following are highly recommended additional parameters. Remove the slashes in front to use.
  23. var disqus_identifier = "sammyjsdocs-0.6.3-Sammy.Application-error";
  24. var disqus_url = 'http://www.sammyjs.org/docs/api/0.6.3/Sammy.Application._methods_.error';
  25. /* * * DON'T EDIT BELOW THIS LINE * * */
  26. (function() {
  27. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  28. dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
  29. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  30. })();
  31. </script>
  32. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  33. <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
  34. </div>
  35. </div>