Exception: AsyncCable::Errors::UnauthorizedError

Inherits:
Error
  • Object
show all
Defined in:
lib/async_cable/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(reason = nil) ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



16
17
18
# File 'lib/async_cable/errors.rb', line 16

def initialize(reason = nil)
  super(reason || 'unauthorized')
end

Instance Method Details

#codeObject



20
21
22
# File 'lib/async_cable/errors.rb', line 20

def code
  1401
end