Class: Glia::Errors::RecipientOptedOutError

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

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

Returns a new instance of RecipientOptedOutError.



249
250
251
252
253
254
255
# File 'lib/glia/errors/client_errors.rb', line 249

def initialize(message: nil)
  super(
    type: RECIPIENT_OPTED_OUT_ERROR,
    ref: create_ref(RECIPIENT_OPTED_OUT_ERROR),
    message: message || 'Recipient has opted out'
  )
end