Exception: Kybus::Exceptions::KybusError
- Inherits:
-
KybusBaseException
- Object
- StandardError
- KybusBaseException
- Kybus::Exceptions::KybusError
- Defined in:
- lib/kybus/exceptions.rb
Overview
Is used to express an error that was found during the execution of the program but it also means that the invoked endpoint has not the power to fix it, so it will only complain.
Instance Attribute Summary
Attributes inherited from KybusBaseException
Instance Method Summary collapse
-
#initialize(message, code = nil, data = {}) ⇒ KybusError
constructor
A new instance of KybusError.
Methods inherited from KybusBaseException
Constructor Details
#initialize(message, code = nil, data = {}) ⇒ KybusError
Returns a new instance of KybusError.
66 67 68 69 70 |
# File 'lib/kybus/exceptions.rb', line 66 def initialize(, code = nil, data = {}) code ||= self.class.name.split('::').last code = 'ServerError' if code == 'kybusError' super end |