Exception: QueryStream::NoResultWarning
- Defined in:
- lib/query_stream/errors.rb
Overview
一件検索で0件ヒット
Instance Attribute Summary collapse
-
#location ⇒ String
readonly
ソースファイル名と行番号.
-
#query ⇒ String
readonly
元の QueryStream 記法.
Instance Method Summary collapse
-
#initialize(msg = nil, query: nil, location: nil) ⇒ NoResultWarning
constructor
A new instance of NoResultWarning.
Constructor Details
#initialize(msg = nil, query: nil, location: nil) ⇒ NoResultWarning
Returns a new instance of NoResultWarning.
68 69 70 71 72 |
# File 'lib/query_stream/errors.rb', line 68 def initialize(msg = nil, query: nil, location: nil) super(msg || "一件検索で該当なし: #{query}") @query = query @location = location end |
Instance Attribute Details
#location ⇒ String (readonly)
ソースファイル名と行番号
65 66 67 |
# File 'lib/query_stream/errors.rb', line 65 def location @location end |
#query ⇒ String (readonly)
元の QueryStream 記法
65 66 67 |
# File 'lib/query_stream/errors.rb', line 65 def query @query end |