Exception: NusaDB::NusaError
- Inherits:
-
StandardError
- Object
- StandardError
- NusaDB::NusaError
- Defined in:
- lib/nusadb/connection.rb
Overview
A driver or server error; sql_state is the 5-character SQLSTATE (docs/wire-protocol.md ยง14).
Instance Attribute Summary collapse
-
#sql_state ⇒ Object
readonly
Returns the value of attribute sql_state.
Instance Method Summary collapse
-
#initialize(message, sql_state = 'HY000') ⇒ NusaError
constructor
A new instance of NusaError.
Constructor Details
#initialize(message, sql_state = 'HY000') ⇒ NusaError
Returns a new instance of NusaError.
14 15 16 17 |
# File 'lib/nusadb/connection.rb', line 14 def initialize(, sql_state = 'HY000') super() @sql_state = sql_state end |
Instance Attribute Details
#sql_state ⇒ Object (readonly)
Returns the value of attribute sql_state.
12 13 14 |
# File 'lib/nusadb/connection.rb', line 12 def sql_state @sql_state end |