Exception: Chatrix::RoomNotFoundError

Inherits:
NotFoundError show all
Defined in:
lib/chatrix/errors.rb

Overview

Raised when a room is not found.

Instance Attribute Summary collapse

Attributes inherited from ApiError

#api_message, #code, #error

Instance Method Summary collapse

Constructor Details

#initialize(room, error = {}) ⇒ RoomNotFoundError

Initializes a new RoomNotFoundError instance.

Parameters:

  • room (String)

    Name of the room that was not found.

  • error (Hash) (defaults to: {})

    The error response from the server.



93
94
95
96
# File 'lib/chatrix/errors.rb', line 93

def initialize(room, error = {})
  super error
  @room = room
end

Instance Attribute Details

#roomString (readonly)

Returns the room that was not found.

Returns:

  • (String)

    the room that was not found.



88
89
90
# File 'lib/chatrix/errors.rb', line 88

def room
  @room
end