Sha256: ab868fe28c55c8630a597a9ee6f59a4ccaa98116659303d0b6ff106e81ac3aff
Contents?: true
Size: 564 Bytes
Versions: 3
Compression:
Stored size: 564 Bytes
Contents
module AsyncCable module Errors class Error < StandardError 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 def code 1401 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
async_cable-0.2.3 | lib/async_cable/errors.rb |
async_cable-0.2.2 | lib/async_cable/errors.rb |
async_cable-0.2.1 | lib/async_cable/errors.rb |