class FlexColumns::Errors::InvalidFlexColumnsVersionNumberInDatabaseError

Raised when the data in the database appears to have a flex_columns header on it, but the version number is not something we support.

Attributes

max_version_number_supported[R]
version_number_in_database[R]

Public Class Methods

new(data_source, raw_string, version_number_in_database, max_version_number_supported) click to toggle source
# File lib/flex_columns/errors.rb, line 138
def initialize(data_source, raw_string, version_number_in_database, max_version_number_supported)
  @version_number_in_database = version_number_in_database
  @max_version_number_supported = max_version_number_supported
  super(data_source, raw_string)
end

Private Instance Methods

create_message() click to toggle source
# File lib/flex_columns/errors.rb, line 145
def create_message
  super + %{, we got a version number in the database, #{version_number_in_database}, which is greater than our maximum supported version number, #{max_version_number_supported}.}
end