Exception: AgentHarness::AuthenticationError
- Defined in:
- lib/agent_harness/errors.rb
Overview
Authentication errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error_category ⇒ Object
readonly
Returns the value of attribute error_category.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, provider: nil, error_category: :authentication, error_code: :invalid_credential, **kwargs) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
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( = nil, provider: nil, error_category: :authentication, error_code: :invalid_credential, **kwargs) @provider = provider @error_category = error_category @error_code = error_code super(, **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 |