Class: Glia::Errors::MessageBlockedError

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) ⇒ MessageBlockedError

Returns a new instance of MessageBlockedError.



308
309
310
311
312
313
314
# File 'lib/glia/errors/client_errors.rb', line 308

def initialize(message: nil)
  super(
    type: MESSAGE_BLOCKED_ERROR,
    ref: create_ref(MESSAGE_BLOCKED_ERROR),
    message: message || 'Message blocked or filtered'
  )
end