Exception: Legate::Auth::TokenRefreshError

Inherits:
Error
  • Object
show all
Defined in:
lib/legate/auth/error.rb

Overview

Raised when a token refresh operation fails

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, provider_error = nil, cause = nil) ⇒ TokenRefreshError

Returns a new instance of TokenRefreshError.

Parameters:

  • message (String) (defaults to: nil)

    The error message

  • provider_error (String, nil) (defaults to: nil)

    Error information from the provider

  • cause (Exception, nil) (defaults to: nil)

    The underlying exception that caused this error



41
42
43
44
45
# File 'lib/legate/auth/error.rb', line 41

def initialize(message = nil, provider_error = nil, cause = nil)
  error_message = message || 'Token refresh failed'
  error_message = "#{error_message}: #{provider_error}" if provider_error
  super(error_message, cause)
end