Exception: PhusionPassenger::AppInitError

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

Overview

Raised when Rack::ApplicationSpawner, ClassicRails::ApplicationSpawner, ClassicRails::FrameworkSpawner or SpawnManager was unable to spawn an application, because the application either threw an exception or called exit.

If the application called exit, then child_exception is an instance of SystemExit.

Instance Attribute Summary (collapse)

Attributes inherited from InitializationError

#child_exception

Instance Method Summary (collapse)

Constructor Details

- (AppInitError) initialize(message, child_exception = nil, app_type = "rails",, stderr = nil)



66
67
68
69
70
# File 'lib/phusion_passenger/exceptions.rb', line 66

def initialize(message, child_exception = nil, app_type = "rails", stderr = nil)
	super(message, child_exception)
	@app_type = app_type
	@stderr = stderr
end

Instance Attribute Details

- (Object) app_type

The application type, e.g. "rails" or "rack".



62
63
64
# File 'lib/phusion_passenger/exceptions.rb', line 62

def app_type
  @app_type
end

- (Object) stderr

Any messages printed to stderr before the failure. May be nil.



64
65
66
# File 'lib/phusion_passenger/exceptions.rb', line 64

def stderr
  @stderr
end