Exception: Chatrix::AvatarNotFoundError
- Inherits:
-
NotFoundError
- Object
- StandardError
- ChatrixError
- ApiError
- NotFoundError
- Chatrix::AvatarNotFoundError
- Defined in:
- lib/chatrix/errors.rb
Overview
Raised when a user's avatar is not found.
Instance Attribute Summary collapse
-
#username ⇒ String
readonly
The user whose avatar was not found.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(username, error = {}) ⇒ AvatarNotFoundError
constructor
Initializes a new AvatarNotFoundError instance.
Constructor Details
#initialize(username, error = {}) ⇒ AvatarNotFoundError
Initializes a new AvatarNotFoundError instance.
79 80 81 82 |
# File 'lib/chatrix/errors.rb', line 79 def initialize(username, error = {}) super error @username = username end |
Instance Attribute Details
#username ⇒ String (readonly)
Returns the user whose avatar was not found.
74 75 76 |
# File 'lib/chatrix/errors.rb', line 74 def username @username end |