Exception: ActiveSupport::EncryptedConfiguration::InvalidContentError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ActiveSupport::EncryptedConfiguration::InvalidContentError
- Defined in:
- lib/active_support/encrypted_configuration.rb
Instance Method Summary collapse
-
#initialize(content_path) ⇒ InvalidContentError
constructor
A new instance of InvalidContentError.
- #message ⇒ Object
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
#message ⇒ Object
41 42 43 |
# File 'lib/active_support/encrypted_configuration.rb', line 41 def cause.is_a?(Psych::SyntaxError) ? "#{super}\n\n #{cause.}" : super end |