Exception: PhusionPassenger::AppInitError
- Inherits:
-
InitializationError
- Object
- StandardError
- InitializationError
- PhusionPassenger::AppInitError
- 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
-
#app_type ⇒ Object
The application type, e.g.
-
#stderr ⇒ Object
Any messages printed to stderr before the failure.
Attributes inherited from InitializationError
Instance Method Summary collapse
-
#initialize(message, child_exception = nil, app_type = "rails", stderr = nil) ⇒ AppInitError
constructor
A new instance of AppInitError.
Constructor Details
#initialize(message, child_exception = nil, app_type = "rails", stderr = nil) ⇒ AppInitError
Returns a new instance of AppInitError.
66 67 68 69 70 |
# File 'lib/phusion_passenger/exceptions.rb', line 66 def initialize(, child_exception = nil, app_type = "rails", stderr = nil) super(, child_exception) @app_type = app_type @stderr = stderr end |
Instance Attribute Details
#app_type ⇒ Object
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 |
#stderr ⇒ Object
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 |