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

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

Mixin module that contains detailed error informationtypically this is available if credentials initializationsucceeds and credentials object is valid

Methods

#credential_type_name

defcredential_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

defdetails()->Hash

All details passed in the options hash when creating the error

Returns
  • (Hash) — Additional details about the error

#principal

defprincipal()->String,Symbol,nil

The principal for the authentication flow. Typically obtained from credentials

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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.