Exception: Oxd::ServerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/oxd/errors.rb

Overview

Error raised by oxd-ruby whenever an oxd Server Error is reported

Instance Method Summary collapse

Constructor Details

#initialize(errorObj) ⇒ ServerError

Returns a new instance of ServerError.



4
5
6
7
# File 'lib/oxd/errors.rb', line 4

def initialize(errorObj)
	error_msg = "oxd Server Error: #{errorObj['error']}\n #{errorObj['error_description']}"
  super(error_msg)
end