Exception: Nucleus::StartupError
- Inherits:
-
StandardError
- Object
- StandardError
- Nucleus::StartupError
- Defined in:
- lib/nucleus/core/common/errors/startup_error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
exit code to use when exiting the application due to this error.
Instance Method Summary collapse
-
#initialize(message, exit_code = ExitCodes::STARTUP_ERROR) ⇒ StartupError
constructor
initialize with default exit code of ExitCodes::STARTUP_ERROR.
Constructor Details
#initialize(message, exit_code = ExitCodes::STARTUP_ERROR) ⇒ StartupError
initialize with default exit code of ExitCodes::STARTUP_ERROR
7 8 9 10 |
# File 'lib/nucleus/core/common/errors/startup_error.rb', line 7 def initialize(, exit_code = ExitCodes::STARTUP_ERROR) super() @exit_code = exit_code end |
Instance Attribute Details
#exit_code ⇒ Object
exit code to use when exiting the application due to this error
4 5 6 |
# File 'lib/nucleus/core/common/errors/startup_error.rb', line 4 def exit_code @exit_code end |