Exception: ActiveSupport::EncryptedConfiguration::InvalidContentError

Inherits:
RuntimeError
  • Object
show all
Defined in:
activesupport/lib/active_support/encrypted_configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(content_path) ⇒ InvalidContentError

Returns a new instance of InvalidContentError.



34
35
36
# File 'activesupport/lib/active_support/encrypted_configuration.rb', line 34

def initialize(content_path)
  super "Invalid YAML in '#{content_path}'."
end

Instance Method Details

#messageObject



38
39
40
# File 'activesupport/lib/active_support/encrypted_configuration.rb', line 38

def message
  cause.is_a?(Psych::SyntaxError) ? "#{super}\n\n  #{cause.message}" : super
end