Exception: Aidp::Errors::SecretsProxyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aidp/errors.rb

Overview

Exception raised when secrets proxy cannot fulfill a request

Direct Known Subclasses

TokenExpiredError, UnregisteredSecretError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(secret_name:, reason:) ⇒ SecretsProxyError

Returns a new instance of SecretsProxyError.



111
112
113
114
115
# File 'lib/aidp/errors.rb', line 111

def initialize(secret_name:, reason:)
  @secret_name = secret_name
  @reason = reason
  super("Secrets proxy error for '#{secret_name}': #{reason}")
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



109
110
111
# File 'lib/aidp/errors.rb', line 109

def reason
  @reason
end

#secret_nameObject (readonly)

Returns the value of attribute secret_name.



109
110
111
# File 'lib/aidp/errors.rb', line 109

def secret_name
  @secret_name
end