module Google::Auth::DetailedError::ClassMethods

def with_details message, credential_type_name:, principal:

Returns:
  • (Error) - The new error with details

Parameters:
  • principal (String, Symbol) -- The principal for the authentication flow
  • credential_type_name (String) -- The credential type that raised the error
  • message (String) -- The error message
def with_details message, credential_type_name:, principal:
  new(message).tap do |error|
    error.instance_variable_set :@credential_type_name, credential_type_name
    error.instance_variable_set :@principal, principal
  end
end