Exception: Expressir::Express::Error::CacheVersionMismatchError

Inherits:
ExpressError
  • Object
show all
Defined in:
lib/expressir/express/error.rb

Overview

Error raised when there’s a version mismatch in the cache

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cache_version, expressir_version) ⇒ CacheVersionMismatchError

Initialize a new CacheVersionMismatchError

Parameters:

  • cache_version (String)

    The version of the cache file

  • expressir_version (String)

    The current Expressir version



30
31
32
33
34
# File 'lib/expressir/express/error.rb', line 30

def initialize(cache_version, expressir_version)
  @cache_version = cache_version
  @expressir_version = expressir_version
  super("Cache version mismatch, cache version is #{cache_version}, Expressir version is #{expressir_version}")
end

Instance Attribute Details

#cache_versionObject (readonly)

Returns the value of attribute cache_version.



25
26
27
# File 'lib/expressir/express/error.rb', line 25

def cache_version
  @cache_version
end

#expressir_versionObject (readonly)

Returns the value of attribute expressir_version.



25
26
27
# File 'lib/expressir/express/error.rb', line 25

def expressir_version
  @expressir_version
end