Module: Google::Auth::DetailedError

Includes:
Error
Included in:
AuthorizationError, CredentialsError, ParseError, UnexpectedStatusError
Defined in:
lib/googleauth/errors.rb

Overview

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

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Attribute Details

#credential_type_nameString? (readonly)

The type of the credentials that the error was originated from

Returns:

  • (String, nil)

    The class name of the credential that raised the error



37
38
39
# File 'lib/googleauth/errors.rb', line 37

def credential_type_name
  @credential_type_name
end

#detailsHash (readonly)

All details passed in the options hash when creating the error

Returns:

  • (Hash)

    Additional details about the error



45
46
47
# File 'lib/googleauth/errors.rb', line 45

def details
  @details
end

#principalString, ... (readonly)

The principal for the authentication flow. Typically obtained from credentials

Returns:

  • (String, Symbol, nil)

    The principal identifier associated with the credentials



41
42
43
# File 'lib/googleauth/errors.rb', line 41

def principal
  @principal
end