Exception: VoltRb::VoltError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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_statusObject (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_stringObject (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

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/voltrb/exceptions.rb', line 5

def status
  @status
end

#status_stringObject (readonly)

Returns the value of attribute status_string.



5
6
7
# File 'lib/voltrb/exceptions.rb', line 5

def status_string
  @status_string
end