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, status, #status, status=, status?, #to_i

Constructor Details

#initialize(exception = nil) ⇒ InternalServerError

Returns a new instance of InternalServerError.



293
294
295
# File 'lib/merb-core/controller/exceptions.rb', line 293

def initialize(exception = nil)
  @exception = exception
end

Instance Method Details

#backtraceObject



297
298
299
# File 'lib/merb-core/controller/exceptions.rb', line 297

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

#messageObject



301
302
303
# File 'lib/merb-core/controller/exceptions.rb', line 301

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