Exception: Spacebunny::LiveStreamNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spacebunny/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name = nil) ⇒ LiveStreamNotFound

Returns a new instance of LiveStreamNotFound.



45
46
47
48
49
50
51
52
# File 'lib/spacebunny/exceptions.rb', line 45

def initialize(name = nil)
  message = if name
              "Live Stream '#{name}' not found. Did you created and configured it?"
            else
              'Live Stream not found'
            end
  super(message)
end