Exception: ActiveSupport::EncryptedConfiguration::InvalidContentError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ActiveSupport::EncryptedConfiguration::InvalidContentError
- Defined in:
- activesupport/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.
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
#message ⇒ Object
38 39 40 |
# File 'activesupport/lib/active_support/encrypted_configuration.rb', line 38 def cause.is_a?(Psych::SyntaxError) ? "#{super}\n\n #{cause.}" : super end |