Exception: Rublox::Errors::PresenceNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rublox/util/errors.rb

Overview

Exception raised when a user’s presence cannot be found.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_id) ⇒ PresenceNotFoundError

Returns a new instance of PresenceNotFoundError.



44
45
46
47
# File 'lib/rublox/util/errors.rb', line 44

def initialize(user_id)
  @user_id = user_id
  super("The presence of the user with ID #{user_id} could not be found.")
end

Instance Attribute Details

#user_idInteger (readonly)

Returns the presence user’s ID.

Returns:

  • (Integer)

    the presence user’s ID



42
43
44
# File 'lib/rublox/util/errors.rb', line 42

def user_id
  @user_id
end