Exception: Vonage::ServiceError

Inherits:
Error
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/vonage/service_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, response:) ⇒ ServiceError

Returns a new instance of ServiceError.



11
12
13
14
# File 'lib/vonage/service_error.rb', line 11

def initialize(message = nil, response:)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/vonage/service_error.rb', line 8

def response
  @response
end