Exception: Bozo::ConfigurationError
- Inherits:
-
StandardError
- Object
- StandardError
- Bozo::ConfigurationError
- Defined in:
- lib/bozo/configuration_error.rb
Overview
Error raised when a runner or hook finds the configuration or build in an unexpected state.
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
The code the program should exit with upon handling this error.
-
#message ⇒ Object
readonly
A message explaining the corrective actions someone can take to avoid the error.
Instance Method Summary collapse
-
#initialize(message) ⇒ ConfigurationError
constructor
Creates a new instance.
- #inspect ⇒ Object
Constructor Details
#initialize(message) ⇒ ConfigurationError
Creates a new instance.
19 20 21 22 |
# File 'lib/bozo/configuration_error.rb', line 19 def initialize() @message = @exit_code = -1 end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
The code the program should exit with upon handling this error.
8 9 10 |
# File 'lib/bozo/configuration_error.rb', line 8 def exit_code @exit_code end |
#message ⇒ Object (readonly)
A message explaining the corrective actions someone can take to avoid the error.
12 13 14 |
# File 'lib/bozo/configuration_error.rb', line 12 def @message end |
Instance Method Details
#inspect ⇒ Object
24 25 26 |
# File 'lib/bozo/configuration_error.rb', line 24 def inspect "Configuration error: #{}" end |