Exception: Chatrix::UserNotFoundError
- Inherits:
-
NotFoundError
- Object
- StandardError
- ChatrixError
- ApiError
- NotFoundError
- Chatrix::UserNotFoundError
- Defined in:
- lib/chatrix/errors.rb
Overview
Raised when a user is not found.
Instance Attribute Summary collapse
-
#username ⇒ String
readonly
The name of the user that was not found.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(username, error = {}) ⇒ UserNotFoundError
constructor
Initializes a new UserNotFoundError instance.
Constructor Details
#initialize(username, error = {}) ⇒ UserNotFoundError
Initializes a new UserNotFoundError instance.
65 66 67 68 |
# File 'lib/chatrix/errors.rb', line 65 def initialize(username, error = {}) super error @username = username end |
Instance Attribute Details
#username ⇒ String (readonly)
Returns the name of the user that was not found.
60 61 62 |
# File 'lib/chatrix/errors.rb', line 60 def username @username end |