Exception: MotherBrain::InvalidEnvironmentJson
- Defined in:
- lib/mb/errors.rb
Constant Summary
Constants inherited from MBError
Instance Method Summary collapse
-
#initialize(path, json_error = nil) ⇒ InvalidEnvironmentJson
constructor
A new instance of InvalidEnvironmentJson.
- #message ⇒ Object
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s
Constructor Details
#initialize(path, json_error = nil) ⇒ InvalidEnvironmentJson
Returns a new instance of InvalidEnvironmentJson.
461 462 463 |
# File 'lib/mb/errors.rb', line 461 def initialize(path, json_error=nil) @path = path end |
Instance Method Details
#message ⇒ Object
465 466 467 468 469 |
# File 'lib/mb/errors.rb', line 465 def msg = "Environment JSON contained in #{path} is invalid." msg << "\n#{json_error.}" if json_error and json_error.responds_to?(:message) msg end |