Exception: FlexColumns::Errors::InvalidJsonInDatabaseError
- Inherits:
-
InvalidDataInDatabaseError
- Object
- StandardError
- Base
- DataError
- InvalidDataInDatabaseError
- FlexColumns::Errors::InvalidJsonInDatabaseError
- Defined in:
- lib/flex_columns/errors.rb
Overview
Raised when the JSON in the database is invalid – not because it’s not actually JSON, but because it doesn’t represent a Hash.
Instance Attribute Summary collapse
-
#returned_data ⇒ Object
readonly
Returns the value of attribute returned_data.
Attributes inherited from InvalidDataInDatabaseError
#additional_message, #data_source, #raw_string
Instance Method Summary collapse
-
#initialize(data_source, raw_string, returned_data) ⇒ InvalidJsonInDatabaseError
constructor
A new instance of InvalidJsonInDatabaseError.
Constructor Details
#initialize(data_source, raw_string, returned_data) ⇒ InvalidJsonInDatabaseError
Returns a new instance of InvalidJsonInDatabaseError.
223 224 225 226 |
# File 'lib/flex_columns/errors.rb', line 223 def initialize(data_source, raw_string, returned_data) @returned_data = returned_data super(data_source, raw_string) end |
Instance Attribute Details
#returned_data ⇒ Object (readonly)
Returns the value of attribute returned_data.
221 222 223 |
# File 'lib/flex_columns/errors.rb', line 221 def returned_data @returned_data end |