Exception: Oxd::ServerError
- Inherits:
-
StandardError
- Object
- StandardError
- Oxd::ServerError
- Defined in:
- lib/oxd/errors.rb
Overview
Error raised by oxd-ruby whenever an oxd Server Error is reported
Instance Method Summary collapse
-
#initialize(errorObj) ⇒ ServerError
constructor
A new instance of ServerError.
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 |