Exception: Slacks::UnableToDirectMessageError

Inherits:
ResponseError
  • Object
show all
Defined in:
lib/slacks/errors.rb

Instance Attribute Summary

Attributes inherited from ResponseError

#response

Instance Method Summary collapse

Constructor Details

#initialize(response, user_id) ⇒ UnableToDirectMessageError

Returns a new instance of UnableToDirectMessageError.



40
41
42
# File 'lib/slacks/errors.rb', line 40

def initialize(response, user_id)
  super response, "Unable to direct message the user #{user_id.inspect}: #{response["error"]}"
end