Exception: Merb::ControllerExceptions::InternalServerError

Inherits:
ServerError show all
Defined in:
lib/merb-core/controller/exceptions.rb

Overview

:doc:

Constant Summary collapse

STATUS =
500

Instance Method Summary collapse

Methods inherited from Base

inherited, name, #name, to_i

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

#backtraceObject



239
240
241
# File 'lib/merb-core/controller/exceptions.rb', line 239

def backtrace
  @exception ? @exception.backtrace : backtrace
end

#messageObject



243
244
245
# File 'lib/merb-core/controller/exceptions.rb', line 243

def message
  @exception ? @exception.message : message
end