Exception: Merb::ControllerExceptions::InternalServerError

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

Overview

:doc:

Instance Method Summary collapse

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

#backtraceObject



284
285
286
# File 'lib/merb-core/controller/exceptions.rb', line 284

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

#messageObject



288
289
290
# File 'lib/merb-core/controller/exceptions.rb', line 288

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