/views/docs/api/0.6.2/Sammy.Application._methods_.error.html
HTML | 37 lines | 35 code | 2 blank | 0 comment | 0 complexity | 50b6ada6a434fd434ba611da77557bb8 MD5 | raw file
- <div class='individual meth' id='Sammy.Application-error'>
- <a href='/docs/api/0.6.2/'>
- <strong>« Back</strong>
- </a>
- <h3>
- <strong>Sammy.Application</strong>
- <a href='Sammy.Application._methods_.error.html'>error</a>
- <span>
- (
- <em>message, original_error</em>
- )
- </span>
- </h3>
- <div class='links'>
- <a href='Sammy.Application._methods_.error.html#comments'>Comments</a>
- |
- <a href='https://github.com/quirkey/sammy/tree/v0.6.2/lib/sammy.js#L1151' target='all'>Show in GitHub</a>
- </div><div class='doc'><p>The base error handler takes a string <code>message</code> and an <code>Error</code>
object. If <code>raise_errors</code> is set to <code>true</code> on the app level,
this will re-throw the error to the browser. Otherwise it will send the error
to <code>log()</code>. Override this method to provide custom error handling
e.g logging to a server side component or displaying some feedback to the
user.</p></div><div id='comments'>
- <div id="disqus_thread"></div>
- <script type="text/javascript">
- var disqus_shortname = 'sammyjsorg'; // required: replace example with your forum shortname
- // The following are highly recommended additional parameters. Remove the slashes in front to use.
- var disqus_identifier = "sammyjsdocs-0.6.2-Sammy.Application-error";
- var disqus_url = 'http://www.sammyjs.org/docs/api/0.6.2/Sammy.Application._methods_.error.html';
- /* * * DON'T EDIT BELOW THIS LINE * * */
- (function() {
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- })();
- </script>
- <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
- <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
- </div>
- </div>