Exception: AgentHarness::NoProvidersAvailableError

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

Overview

Orchestration errors

Instance Attribute Summary collapse

Attributes inherited from Error

#context, #original_error

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, attempted_providers: [], errors: {}, **kwargs) ⇒ NoProvidersAvailableError

Returns a new instance of NoProvidersAvailableError.



135
136
137
138
139
# File 'lib/agent_harness/errors.rb', line 135

def initialize(message = nil, attempted_providers: [], errors: {}, **kwargs)
  @attempted_providers = attempted_providers
  @errors = errors
  super(message, **kwargs)
end

Instance Attribute Details

#attempted_providers ⇒ Object (readonly)

Returns the value of attribute attempted_providers.



133
134
135
# File 'lib/agent_harness/errors.rb', line 133

def attempted_providers
  @attempted_providers
end

#errors ⇒ Object (readonly)

Returns the value of attribute errors.



133
134
135
# File 'lib/agent_harness/errors.rb', line 133

def errors
  @errors
end