Exception: AgentHarness::AuthenticationError

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

Overview

Authentication errors

Direct Known Subclasses

AuthMismatchError

Instance Attribute Summary collapse

Attributes inherited from Error

#context, #original_error

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, provider: nil, error_category: :authentication, error_code: :invalid_credential, **kwargs) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



73
74
75
76
77
78
# File 'lib/agent_harness/errors.rb', line 73

def initialize(message = nil, provider: nil, error_category: :authentication, error_code: :invalid_credential, **kwargs)
  @provider = provider
  @error_category = error_category
  @error_code = error_code
  super(message, **kwargs)
end

Instance Attribute Details

#error_category ⇒ Object (readonly)

Returns the value of attribute error_category.



71
72
73
# File 'lib/agent_harness/errors.rb', line 71

def error_category
  @error_category
end

#error_code ⇒ Object (readonly)

Returns the value of attribute error_code.



71
72
73
# File 'lib/agent_harness/errors.rb', line 71

def error_code
  @error_code
end

#provider ⇒ Object (readonly)

Returns the value of attribute provider.



71
72
73
# File 'lib/agent_harness/errors.rb', line 71

def provider
  @provider
end