Exception: ActiveRecord::ConnectionAdapters::SQLAnywhereException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_record/connection_adapters/sqlanywhere_adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, errno, sql) ⇒ SQLAnywhereException



82
83
84
85
86
# File 'lib/active_record/connection_adapters/sqlanywhere_adapter.rb', line 82

def initialize(message, errno, sql)
  super(message)
  @errno = errno
  @sql = sql
end

Instance Attribute Details

#errnoObject (readonly)

Returns the value of attribute errno.



79
80
81
# File 'lib/active_record/connection_adapters/sqlanywhere_adapter.rb', line 79

def errno
  @errno
end

#sqlObject (readonly)

Returns the value of attribute sql.



80
81
82
# File 'lib/active_record/connection_adapters/sqlanywhere_adapter.rb', line 80

def sql
  @sql
end