Exception: Bozo::ConfigurationError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ConfigurationError

Creates a new instance.

Parameters:

  • message (String)

    A message explaining the corrective actions someone can take to avoid the error.



19
20
21
22
# File 'lib/bozo/configuration_error.rb', line 19

def initialize(message)
  @message = message
  @exit_code = -1
end

Instance Attribute Details

#exit_codeObject (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

#messageObject (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
  @message
end

Instance Method Details

#inspectObject



24
25
26
# File 'lib/bozo/configuration_error.rb', line 24

def inspect
  "Configuration error: #{message}"
end