Exception: Aidp::Errors::TokenExpiredError

Inherits:
SecretsProxyError show all
Defined in:
lib/aidp/errors.rb

Overview

Exception raised when a token has expired

Instance Attribute Summary

Attributes inherited from SecretsProxyError

#reason, #secret_name

Instance Method Summary collapse

Constructor Details

#initialize(secret_name:, expired_at:) ⇒ TokenExpiredError

Returns a new instance of TokenExpiredError.



130
131
132
133
134
135
# File 'lib/aidp/errors.rb', line 130

def initialize(secret_name:, expired_at:)
  super(
    secret_name: secret_name,
    reason: "Token expired at #{expired_at}. Request a new token via the secrets proxy."
  )
end