Exception: Keycardai::OAuth::WorkloadIdentityRuntimeError

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

Overview

A workload-identity source failed at request time: file unreadable or empty, endpoint unreachable, non-200 response, empty token. Carries the source identifier and preserves the underlying cause.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, source:) ⇒ WorkloadIdentityRuntimeError

Returns a new instance of WorkloadIdentityRuntimeError.



134
135
136
137
# File 'lib/keycardai/oauth/errors.rb', line 134

def initialize(message, source:)
  super(message)
  @source = source
end

Instance Attribute Details

#sourceString (readonly)

Returns:

  • (String)


132
133
134
# File 'lib/keycardai/oauth/errors.rb', line 132

def source
  @source
end