Exception: SignalWire::Relay::RelayError
- Inherits:
-
StandardError
- Object
- StandardError
- SignalWire::Relay::RelayError
- Defined in:
- lib/signalwire/relay/client.rb
Overview
Raised for RELAY JSON-RPC errors.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ RelayError
constructor
A new instance of RelayError.
Constructor Details
#initialize(code, message) ⇒ RelayError
Returns a new instance of RelayError.
19 20 21 22 23 |
# File 'lib/signalwire/relay/client.rb', line 19 def initialize(code, ) @code = code @error_message = super("RELAY error #{code}: #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
17 18 19 |
# File 'lib/signalwire/relay/client.rb', line 17 def code @code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
17 18 19 |
# File 'lib/signalwire/relay/client.rb', line 17 def @error_message end |