Exception: PgExecArrayParams::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PgExecArrayParams::Error
- Defined in:
- lib/pg_exec_array_params/error.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
Returns the value of attribute node.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(message, query = nil, node = nil) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(message, query = nil, node = nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 12 |
# File 'lib/pg_exec_array_params/error.rb', line 7 def initialize(, query = nil, node = nil) super() @msg = @query = query @node = node end |
Instance Attribute Details
#node ⇒ Object
Returns the value of attribute node.
5 6 7 |
# File 'lib/pg_exec_array_params/error.rb', line 5 def node @node end |
#query ⇒ Object
Returns the value of attribute query.
5 6 7 |
# File 'lib/pg_exec_array_params/error.rb', line 5 def query @query end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/pg_exec_array_params/error.rb', line 14 def to_s "#{@msg}\n#{@query}\n#{@node}" end |