Exception: PhusionPassenger::FrameworkInitError

Inherits:
InitializationError show all
Defined in:
lib/phusion_passenger/exceptions.rb

Overview

Raised when Railz::FrameworkSpawner or Railz::SpawnManager was unable to load a version of the Ruby on Rails framework. The child_exception attribute is guaranteed non-nil.

Instance Attribute Summary collapse

Attributes inherited from InitializationError

#child_exception

Instance Method Summary collapse

Constructor Details

#initialize(message, child_exception, options) ⇒ FrameworkInitError

Returns a new instance of FrameworkInitError.



80
81
82
83
84
85
86
87
# File 'lib/phusion_passenger/exceptions.rb', line 80

def initialize(message, child_exception, options)
	super(message, child_exception)
	if options[:vendor]
		@vendor = options[:vendor]
	else
		@version = options[:version]
	end
end

Instance Attribute Details

#vendorObject (readonly)

Returns the value of attribute vendor.



77
78
79
# File 'lib/phusion_passenger/exceptions.rb', line 77

def vendor
  @vendor
end

#versionObject (readonly)

Returns the value of attribute version.



78
79
80
# File 'lib/phusion_passenger/exceptions.rb', line 78

def version
  @version
end