Exception: Rublox::Errors::PresenceNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- Rublox::Errors::PresenceNotFoundError
- Defined in:
- lib/rublox/util/errors.rb
Overview
Exception raised when a user’s presence cannot be found.
Instance Attribute Summary collapse
-
#user_id ⇒ Integer
readonly
The presence user’s ID.
Instance Method Summary collapse
-
#initialize(user_id) ⇒ PresenceNotFoundError
constructor
A new instance of PresenceNotFoundError.
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_id ⇒ Integer (readonly)
Returns the presence user’s ID.
42 43 44 |
# File 'lib/rublox/util/errors.rb', line 42 def user_id @user_id end |