Sha256: 8eb313a9e3becbaa9c4fe32783af4f5a98bc3256ee4929751ab21d36b3dd8da6

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 Bytes

Contents

module BigbluebuttonRails

  # Raised when the user is not authorized to join a room
  class RoomAccessDenied < StandardError; end

  # Raised when an action that requires a server is called for a
  # room that does not have a server associated
  class ServerRequired < StandardError; end

  # To help create responses for API errors
  class APIError < StandardError
    def initialize(msg, code=500, title=nil)
      @title = title || msg
      @code = code
      super(msg)
    end

    def code
      @code
    end

    def title
      @title
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bigbluebutton_rails-3.0.0 lib/bigbluebutton_rails/exceptions.rb
bigbluebutton_rails-2.3.0 lib/bigbluebutton_rails/exceptions.rb