Exception: AsyncCable::Errors::UnauthorizedError

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

Overview

Instance Method Summary collapse

Constructor Details

#initialize(reason = nil) ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



18
19
20
# File 'lib/async_cable/errors.rb', line 18

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

Instance Method Details

#codeObject



22
23
24
# File 'lib/async_cable/errors.rb', line 22

def code
  1401
end