Exception: IspUnity::IspUnityException

Inherits:
Exception
  • Object
show all
Defined in:
lib/isp_unity.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ IspUnityException

Returns a new instance of IspUnityException.



24
25
26
27
# File 'lib/isp_unity.rb', line 24

def initialize(message)
  message = message['error'] if message.class == Hash
  super "[IspUnity] #{message}"
end