Exception: QueryStream::DataNotFoundError
- Defined in:
- lib/query_stream/errors.rb
Overview
データファイルが存在しない
Instance Attribute Summary collapse
-
#expected_path ⇒ String
readonly
期待されたデータファイルパス.
-
#location ⇒ String
readonly
ソースファイル名と行番号.
-
#query ⇒ String
readonly
元の QueryStream 記法.
Instance Method Summary collapse
-
#initialize(msg = nil, expected_path: nil, query: nil, location: nil) ⇒ DataNotFoundError
constructor
A new instance of DataNotFoundError.
Constructor Details
#initialize(msg = nil, expected_path: nil, query: nil, location: nil) ⇒ DataNotFoundError
Returns a new instance of DataNotFoundError.
46 47 48 49 50 51 |
# File 'lib/query_stream/errors.rb', line 46 def initialize(msg = nil, expected_path: nil, query: nil, location: nil) super(msg || "データファイルが見つかりません: #{expected_path}") @expected_path = expected_path @query = query @location = location end |
Instance Attribute Details
#expected_path ⇒ String (readonly)
期待されたデータファイルパス
43 44 45 |
# File 'lib/query_stream/errors.rb', line 43 def expected_path @expected_path end |
#location ⇒ String (readonly)
ソースファイル名と行番号
43 44 45 |
# File 'lib/query_stream/errors.rb', line 43 def location @location end |
#query ⇒ String (readonly)
元の QueryStream 記法
43 44 45 |
# File 'lib/query_stream/errors.rb', line 43 def query @query end |