googleauth - Module Google::Auth::DetailedError (v1.15.0)

Reference documentation and code samples for the googleauth module Google::Auth::DetailedError.

Mixin module that contains detailed error information typically this is available if credentials initialization succeeds and credentials object is valid

Methods

#credential_type_name

def credential_type_name() -> String, nil

The type of the credentials that the error was originated from

Returns
  • (String, nil) — The class name of the credential that raised the error

#details

def details() -> Hash

All details passed in the options hash when creating the error

Returns
  • (Hash) — Additional details about the error

#principal

def principal() -> String, Symbol, nil

The principal for the authentication flow. Typically obtained from credentials

Returns
  • (String, Symbol, nil) — The principal identifier associated with the credentials