Exception: QiitaTrend::Error::NotExistsCacheError
- Inherits:
-
SyntaxError
- Object
- StandardError
- SyntaxError
- QiitaTrend::Error::NotExistsCacheError
- Defined in:
- lib/qiita_trend/error/not_exists_cache_error.rb
Overview
キャッシュファイルが存在しない時に発生するエラークラス キャッシュファイルからトレンドを取得する時、存在しないキャッシュファイルを指定した時に発生する
Instance Attribute Summary collapse
-
#cache ⇒ Cache
readonly
Cacheクラス.
Instance Method Summary collapse
-
#initialize(cache) ⇒ NotExistsCacheError
constructor
コンストラクタ.
-
#message ⇒ String
エラーメッセージを返します 読み込もうとしたキャッシュファイルのフルパス含んだ形でメッセージを返します.
Constructor Details
#initialize(cache) ⇒ NotExistsCacheError
コンストラクタ
14 15 16 17 |
# File 'lib/qiita_trend/error/not_exists_cache_error.rb', line 14 def initialize(cache) super @cache = cache end |
Instance Attribute Details
#cache ⇒ Cache (readonly)
Returns Cacheクラス.
9 10 11 |
# File 'lib/qiita_trend/error/not_exists_cache_error.rb', line 9 def cache @cache end |
Instance Method Details
#message ⇒ String
エラーメッセージを返します 読み込もうとしたキャッシュファイルのフルパス含んだ形でメッセージを返します
23 24 25 |
# File 'lib/qiita_trend/error/not_exists_cache_error.rb', line 23 def "Does not exist cache file #{@cache.full_path}" end |