class Chatrix::UserNotFoundError

Raised when a user is not found.

Attributes

username[R]

@return [String] the name of the user that was not found.

Public Class Methods

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

Initializes a new UserNotFoundError instance. @param username [String] The user that wasn't found. @param error [Hash] The error response from the server.

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