Exception: PgExecArrayParams::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pg_exec_array_params/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, query = nil, node = nil)
  super(message)
  @msg = message
  @query = query
  @node = node
end

Instance Attribute Details

#nodeObject

Returns the value of attribute node.



5
6
7
# File 'lib/pg_exec_array_params/error.rb', line 5

def node
  @node
end

#queryObject

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_sObject



14
15
16
# File 'lib/pg_exec_array_params/error.rb', line 14

def to_s
  "#{@msg}\n#{@query}\n#{@node}"
end