Exception: FlexColumns::Errors::InvalidJsonInDatabaseError

Inherits:
InvalidDataInDatabaseError show all
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

Attributes inherited from InvalidDataInDatabaseError

#additional_message, #data_source, #raw_string

Instance Method Summary collapse

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_dataObject (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