lib/async_cable/errors.rb in async_cable-0.2.0 vs lib/async_cable/errors.rb in async_cable-0.2.1
- old
+ new
@@ -4,15 +4,17 @@
def code
1999
end
end
+ # @see AsyncCable::Connection#handle_open
class StreamNameNotSet < Error
def initialize(class_name)
super("#stream_for must be called with stream name in #{class_name}#on_open")
end
end
+ # @see AsyncCable::Connection#reject_unauthorized
class UnauthorizedError < Error
def initialize(reason = nil)
super(reason || 'unauthorized')
end