Exception: Merb::ControllerExceptions::InternalServerError
- Inherits:
-
ServerError
- Object
- StandardError
- Base
- ServerError
- Merb::ControllerExceptions::InternalServerError
- Defined in:
- lib/merb-core/controller/exceptions.rb
Overview
:doc:
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(exception = nil) ⇒ InternalServerError
constructor
DEFAULT_TEMPLATE = ::Merb::Dispatcher::DEFAULT_ERROR_TEMPLATE.
- #message ⇒ Object
Methods inherited from Base
inherited, #name, name, #status, status, status=, status?, #to_i
Constructor Details
#initialize(exception = nil) ⇒ InternalServerError
DEFAULT_TEMPLATE = ::Merb::Dispatcher::DEFAULT_ERROR_TEMPLATE
279 280 281 282 |
# File 'lib/merb-core/controller/exceptions.rb', line 279 def initialize(exception = nil) @exception = exception @coderay = CodeRay rescue nil end |
Instance Method Details
#backtrace ⇒ Object
284 285 286 |
# File 'lib/merb-core/controller/exceptions.rb', line 284 def backtrace @exception ? @exception.backtrace : backtrace end |
#message ⇒ Object
288 289 290 |
# File 'lib/merb-core/controller/exceptions.rb', line 288 def @exception ? @exception. : end |