Exception: VoltRb::VoltError
- Inherits:
-
StandardError
- Object
- StandardError
- VoltRb::VoltError
- Defined in:
- lib/voltrb/exceptions.rb
Overview
Raised in case of VoltDB-specific errors such as stored procedure invalid arguments or constraint violations. Inspect status, status_string, app_status, and app_status_string for details on the error returned by VoltDB.
Instance Attribute Summary collapse
-
#app_status ⇒ Object
readonly
Returns the value of attribute app_status.
-
#app_status_string ⇒ Object
readonly
Returns the value of attribute app_status_string.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#status_string ⇒ Object
readonly
Returns the value of attribute status_string.
Instance Method Summary collapse
-
#initialize(status, status_string, app_status, app_status_string) ⇒ VoltError
constructor
A new instance of VoltError.
Constructor Details
#initialize(status, status_string, app_status, app_status_string) ⇒ VoltError
Returns a new instance of VoltError.
7 8 9 |
# File 'lib/voltrb/exceptions.rb', line 7 def initialize(status, status_string, app_status, app_status_string) @status, @status_string, @app_status, @app_status_string = status, status_string, app_status, app_status_string end |
Instance Attribute Details
#app_status ⇒ Object (readonly)
Returns the value of attribute app_status.
5 6 7 |
# File 'lib/voltrb/exceptions.rb', line 5 def app_status @app_status end |
#app_status_string ⇒ Object (readonly)
Returns the value of attribute app_status_string.
5 6 7 |
# File 'lib/voltrb/exceptions.rb', line 5 def app_status_string @app_status_string end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/voltrb/exceptions.rb', line 5 def status @status end |
#status_string ⇒ Object (readonly)
Returns the value of attribute status_string.
5 6 7 |
# File 'lib/voltrb/exceptions.rb', line 5 def status_string @status_string end |