class Chatrix::AvatarNotFoundError

Raised when a user's avatar is not found.

Attributes

username[R]

@return [String] the user whose avatar was not found.

Public Class Methods

new(username, error = {}) click to toggle source

Initializes a new AvatarNotFoundError instance. @param username [String] Name of the user whose avatar was not found. @param error [Hash] The error response from the server.

Calls superclass method Chatrix::ApiError::new
# File lib/chatrix/errors.rb, line 79
def initialize(username, error = {})
  super error
  @username = username
end