Exception: AsyncCable::Errors::UnauthorizedError
- Defined in:
- lib/async_cable/errors.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(reason = nil) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
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
#code ⇒ Object
20 21 22 |
# File 'lib/async_cable/errors.rb', line 20 def code 1401 end |