Exception: Merb::ControllerExceptions::InternalServerError
- Inherits:
-
ServerError
- Object
- StandardError
- Base
- ServerError
- Merb::ControllerExceptions::InternalServerError
- Defined in:
- lib/merb-core/controller/exceptions.rb
Overview
:doc:
Constant Summary collapse
- STATUS =
500
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(exception = nil) ⇒ InternalServerError
constructor
DEFAULT_TEMPLATE = ::Merb::Dispatcher::DEFAULT_ERROR_TEMPLATE.
- #message ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(exception = nil) ⇒ InternalServerError
DEFAULT_TEMPLATE = ::Merb::Dispatcher::DEFAULT_ERROR_TEMPLATE
234 235 236 237 |
# File 'lib/merb-core/controller/exceptions.rb', line 234 def initialize(exception = nil) @exception = exception @coderay = CodeRay rescue nil end |
Instance Method Details
#backtrace ⇒ Object
239 240 241 |
# File 'lib/merb-core/controller/exceptions.rb', line 239 def backtrace @exception ? @exception.backtrace : backtrace end |
#message ⇒ Object
243 244 245 |
# File 'lib/merb-core/controller/exceptions.rb', line 243 def @exception ? @exception. : end |