Exception: Slacks::UnableToDirectMessageError
- Inherits:
-
ResponseError
- Object
- RuntimeError
- ResponseError
- Slacks::UnableToDirectMessageError
- Defined in:
- lib/slacks/errors.rb
Instance Attribute Summary
Attributes inherited from ResponseError
Instance Method Summary collapse
-
#initialize(response, user_id) ⇒ UnableToDirectMessageError
constructor
A new instance of UnableToDirectMessageError.
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 |