Exception: Legate::Auth::TokenRevocationError

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

Overview

Raised when a token revocation operation fails

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TokenRevocationError.

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



53
54
55
56
57
# File 'lib/legate/auth/error.rb', line 53

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