Skip to content

Instantly share code, notes, and snippets.

@djwonk
Created September 29, 2008 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djwonk/13534 to your computer and use it in GitHub Desktop.
Save djwonk/13534 to your computer and use it in GitHub Desktop.
# merb-core
# exceptions.rb
class InternalServerError < Merb::ControllerExceptions::ServerError #:doc:
self.status = 500;
# def initialize(exception = nil)
# @exception = exception
# end
#
# def backtrace
# @exception ? @exception.backtrace : backtrace
# end
#
# def message
# @exception ? @exception.message : message
# end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment