Class: Glia::Errors::RecipientOptedOutError

Inherits:
Error
  • Object
show all
Defined in:
lib/glia/errors/client_errors.rb

Constant Summary

Constants inherited from Error

Error::SNAKE_CASE_REGEX

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message: nil) ⇒ RecipientOptedOutError



201
202
203
204
205
206
207
208
# File 'lib/glia/errors/client_errors.rb', line 201

def initialize(message: nil)
  super(
    type: RECIPIENT_OPTED_OUT_ERROR,
    ref:
      'https://docs.glia.com/glia-dev/reference/webhooks#example-engagementrequestfailure-event-with-fail_error',
    message: message || 'Recipient has opted out'
  )
end