Exception: QiitaTrend::Error::NotExistsCacheError

Inherits:
SyntaxError
  • Object
show all
Defined in:
lib/qiita_trend/error/not_exists_cache_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cache) ⇒ NotExistsCacheError

Returns a new instance of NotExistsCacheError.



8
9
10
# File 'lib/qiita_trend/error/not_exists_cache_error.rb', line 8

def initialize(cache)
  @cache = cache
end

Instance Attribute Details

#cacheObject (readonly)

Returns the value of attribute cache.



6
7
8
# File 'lib/qiita_trend/error/not_exists_cache_error.rb', line 6

def cache
  @cache
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/qiita_trend/error/not_exists_cache_error.rb', line 12

def message
  "Does not exist cache file #{@cache.full_path}"
end