Skip to content

Instantly share code, notes, and snippets.

@edwardhotchkiss
Created June 2, 2012 03:37
Show Gist options
  • Save edwardhotchkiss/2856421 to your computer and use it in GitHub Desktop.
Save edwardhotchkiss/2856421 to your computer and use it in GitHub Desktop.
###
@class ErrorHandler
@description Error Delegation
###
class ErrorHandler
constructor: (@name) ->
console.log? @name or 'ErrorHandler'
window.onerror = (msg, url, line) ->
console.log? "Error: #{msg}\nurl: #{url}\nline #:#{line}"
return true
# end
# end
#end
module.exports = ErrorHandler
# EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment