Exception: RubyQuery::QueryError
- Inherits:
-
StandardError
- Object
- StandardError
- RubyQuery::QueryError
- Defined in:
- lib/ruby_query.rb
Instance Attribute Summary collapse
-
#command_name ⇒ Object
Returns the value of attribute command_name.
-
#command_type ⇒ Object
Returns the value of attribute command_type.
-
#context ⇒ Object
Returns the value of attribute context.
-
#message ⇒ Object
Returns the value of attribute message.
-
#param ⇒ Object
Returns the value of attribute param.
Instance Method Summary collapse
-
#initialize(context, name, type, param, msg) ⇒ QueryError
constructor
A new instance of QueryError.
- #to_s ⇒ Object
Constructor Details
#initialize(context, name, type, param, msg) ⇒ QueryError
Returns a new instance of QueryError.
6 7 8 9 10 11 12 |
# File 'lib/ruby_query.rb', line 6 def initialize(context, name, type, param, msg) @context = context @command_name = name @command_type = type @param = param @message = msg end |
Instance Attribute Details
#command_name ⇒ Object
Returns the value of attribute command_name.
5 6 7 |
# File 'lib/ruby_query.rb', line 5 def command_name @command_name end |
#command_type ⇒ Object
Returns the value of attribute command_type.
5 6 7 |
# File 'lib/ruby_query.rb', line 5 def command_type @command_type end |
#context ⇒ Object
Returns the value of attribute context.
5 6 7 |
# File 'lib/ruby_query.rb', line 5 def context @context end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/ruby_query.rb', line 5 def @message end |
#param ⇒ Object
Returns the value of attribute param.
5 6 7 |
# File 'lib/ruby_query.rb', line 5 def param @param end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/ruby_query.rb', line 14 def to_s "#{command_type}:#{command_name} param=#{param}, message=#{}" end |