Exception: GemContribute::AuthRequired
- Defined in:
- lib/gem_contribute/errors.rb
Overview
Raised by host adapters when an authenticated call is attempted without a cached token for that host. The TUI catches this and triggers device flow; CLI callers print a “run auth login” hint. See ADR-0001.
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize(host) ⇒ AuthRequired
constructor
A new instance of AuthRequired.
Constructor Details
#initialize(host) ⇒ AuthRequired
Returns a new instance of AuthRequired.
27 28 29 30 |
# File 'lib/gem_contribute/errors.rb', line 27 def initialize(host) @host = host super("authentication required for #{host}") end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
25 26 27 |
# File 'lib/gem_contribute/errors.rb', line 25 def host @host end |