Exception: Hbase::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Hbase::Error
- Defined in:
- lib/active_record/connection_adapters/hbase/error.rb
Constant Summary collapse
- REPLACEMENT_CHAR =
'?'
- ENCODE_OPTS =
{:undef => :replace, :invalid => :replace, :replace => REPLACEMENT_CHAR}
Instance Attribute Summary collapse
-
#error_number ⇒ Object
(also: #errno)
Returns the value of attribute error_number.
-
#server_version ⇒ Object
writeonly
Sets the attribute server_version.
-
#sql_state ⇒ Object
Returns the value of attribute sql_state.
Instance Method Summary collapse
-
#initialize(msg, server_version = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, server_version = nil) ⇒ Error
Returns a new instance of Error.
14 15 16 17 18 |
# File 'lib/active_record/connection_adapters/hbase/error.rb', line 14 def initialize(msg, server_version=nil) self.server_version = server_version super((msg)) end |
Instance Attribute Details
#error_number ⇒ Object Also known as: errno
Returns the value of attribute error_number.
6 7 8 |
# File 'lib/active_record/connection_adapters/hbase/error.rb', line 6 def error_number @error_number end |
#server_version=(value) ⇒ Object (writeonly)
Sets the attribute server_version
8 9 10 |
# File 'lib/active_record/connection_adapters/hbase/error.rb', line 8 def server_version=(value) @server_version = value end |
#sql_state ⇒ Object
Returns the value of attribute sql_state.
7 8 9 |
# File 'lib/active_record/connection_adapters/hbase/error.rb', line 7 def sql_state @sql_state end |