class QiitaTrend::Error::NotExistsCacheError
キャッシュファイルが存在しない時に発生するエラークラス キャッシュファイルからトレンドを取得する時、存在しないキャッシュファイルを指定した時に発生する
Attributes
cache[R]
@return [Cache] Cacheクラス
Public Class Methods
new(cache)
click to toggle source
コンストラクタ
@param [Cache] cache キャッシュクラス
Calls superclass method
# File lib/qiita_trend/error/not_exists_cache_error.rb, line 14 def initialize(cache) super @cache = cache end
Public Instance Methods
message()
click to toggle source
エラーメッセージを返します 読み込もうとしたキャッシュファイルのフルパス含んだ形でメッセージを返します
@return [String] エラーメッセージ
# File lib/qiita_trend/error/not_exists_cache_error.rb, line 23 def message "Does not exist cache file #{@cache.full_path}" end