Exception: Retell::SDK::Unofficial::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Retell::SDK::Unofficial::Error
- Defined in:
- lib/retell/sdk/unofficial/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message) ⇒ Error
Returns a new instance of Error.
267 268 269 270 271 |
# File 'lib/retell/sdk/unofficial/client.rb', line 267 def initialize(code, ) @code = code @message = super("#{code}: #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
265 266 267 |
# File 'lib/retell/sdk/unofficial/client.rb', line 265 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
265 266 267 |
# File 'lib/retell/sdk/unofficial/client.rb', line 265 def @message end |