Exception: ActiveSupport::EncryptedConfiguration::InvalidContentError

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

Instance Method Summary collapse

Constructor Details

#initialize(content_path) ⇒ InvalidContentError

Returns a new instance of InvalidContentError.



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

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

Instance Method Details

#messageObject



41
42
43
# File 'lib/active_support/encrypted_configuration.rb', line 41

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