class FlexColumns::Errors::InvalidJsonInDatabaseError
Raised when the JSON in the database is invalid – not because it’s not actually JSON, but because it doesn’t represent a Hash.
Attributes
returned_data[R]
Public Class Methods
new(data_source, raw_string, returned_data)
click to toggle source
Calls superclass method
FlexColumns::Errors::InvalidDataInDatabaseError::new
# 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
Private Instance Methods
create_message()
click to toggle source
Calls superclass method
FlexColumns::Errors::InvalidDataInDatabaseError#create_message
# File lib/flex_columns/errors.rb, line 229 def create_message super + %{, the JSON returned wasn't a Hash, but rather #{returned_data.class.name}: #{FlexColumns::Util::StringUtils.abbreviated_string(returned_data.inspect)}} end