Exception: Compote::ConfigOpenError

Inherits:
Error
  • Object
show all
Defined in:
lib/compote/error.rb

Instance Attribute Summary

Attributes inherited from Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(error:, origin_config:) ⇒ ConfigOpenError

Returns a new instance of ConfigOpenError.



12
13
14
15
16
17
18
19
20
# File 'lib/compote/error.rb', line 12

def initialize ( error:, origin_config: )

  message = "Error loading config file: #{ error.message }"

  message += "\n" + "required from #{ origin_config.file_name }" if origin_config

  super message

end