Class: ErrorQuery
Overview
Errors not used for the moment
Constant Summary
Constants inherited from Query
Query::DEBUG, Query::REMOVE_NUMBERS, Query::REMOVE_TEXT
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#hint ⇒ Object
readonly
Returns the value of attribute hint.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Query
#db, #duration, #ignored, #q_id, #user
Instance Method Summary collapse
- #accumulate_to(accumulator) ⇒ Object
- #append_detail(text) ⇒ Object
- #append_hint(text) ⇒ Object
- #append_statement(text) ⇒ Object
-
#initialize(text = "NO ERROR MESSAGE") ⇒ ErrorQuery
constructor
A new instance of ErrorQuery.
Methods inherited from Query
#append, #check, #is_delete, #is_insert, #is_select, #is_update, #normalize, #set_db, #set_subquery, #set_user, #to_s
Constructor Details
#initialize(text = "NO ERROR MESSAGE") ⇒ ErrorQuery
Returns a new instance of ErrorQuery.
788 789 790 791 792 793 |
# File 'lib/pqa.rb', line 788 def initialize(text="NO ERROR MESSAGE") @error = text @hint = '' @detail = '' super("NO STATEMENT") end |
Instance Attribute Details
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
781 782 783 |
# File 'lib/pqa.rb', line 781 def detail @detail end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
781 782 783 |
# File 'lib/pqa.rb', line 781 def error @error end |
#hint ⇒ Object (readonly)
Returns the value of attribute hint.
781 782 783 |
# File 'lib/pqa.rb', line 781 def hint @hint end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
781 782 783 |
# File 'lib/pqa.rb', line 781 def text @text end |
Instance Method Details
#accumulate_to(accumulator) ⇒ Object
810 811 812 |
# File 'lib/pqa.rb', line 810 def accumulate_to(accumulator) accumulator.append_error(self) end |
#append_detail(text) ⇒ Object
805 806 807 808 |
# File 'lib/pqa.rb', line 805 def append_detail(text) $stderr.puts "NIL txt for error detail" if text.nil? && DEBUG @detail = text end |
#append_hint(text) ⇒ Object
800 801 802 803 |
# File 'lib/pqa.rb', line 800 def append_hint(text) $stderr.puts "NIL txt for error hint" if text.nil? && DEBUG @hint = text end |
#append_statement(text) ⇒ Object
795 796 797 798 |
# File 'lib/pqa.rb', line 795 def append_statement(text) $stderr.puts "NIL txt for error statement" if text.nil? && DEBUG @text=text end |