Exception: QueryStream::TemplateNotFoundError
- Defined in:
- lib/query_stream/errors.rb
Overview
テンプレートファイルが存在しない
Instance Attribute Summary collapse
-
#hint ⇒ String?
readonly
修正ヒント.
-
#location ⇒ String
readonly
ソースファイル名と行番号.
-
#query ⇒ String
readonly
元の QueryStream 記法.
-
#template_path ⇒ String
readonly
期待されたテンプレートパス.
Instance Method Summary collapse
-
#initialize(msg = nil, template_path: nil, query: nil, location: nil, hint: nil) ⇒ TemplateNotFoundError
constructor
A new instance of TemplateNotFoundError.
Constructor Details
#initialize(msg = nil, template_path: nil, query: nil, location: nil, hint: nil) ⇒ TemplateNotFoundError
Returns a new instance of TemplateNotFoundError.
30 31 32 33 34 35 36 |
# File 'lib/query_stream/errors.rb', line 30 def initialize(msg = nil, template_path: nil, query: nil, location: nil, hint: nil) super(msg || "テンプレートファイルが見つかりません: #{template_path}") @template_path = template_path @query = query @location = location @hint = hint end |
Instance Attribute Details
#hint ⇒ String? (readonly)
修正ヒント
27 28 29 |
# File 'lib/query_stream/errors.rb', line 27 def hint @hint end |
#location ⇒ String (readonly)
ソースファイル名と行番号
27 28 29 |
# File 'lib/query_stream/errors.rb', line 27 def location @location end |
#query ⇒ String (readonly)
元の QueryStream 記法
27 28 29 |
# File 'lib/query_stream/errors.rb', line 27 def query @query end |
#template_path ⇒ String (readonly)
期待されたテンプレートパス
27 28 29 |
# File 'lib/query_stream/errors.rb', line 27 def template_path @template_path end |