1.17.8 (latest) 1.17.7 1.16.2 1.15.1 1.14.0 1.13.1 1.12.2 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

## Includes

- [Google::Auth::Error](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-Error.md.txt)

## Included In

- [Google::Auth::AuthorizationError](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-AuthorizationError.md.txt)
- [Google::Auth::CredentialsError](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-CredentialsError.md.txt)
- [Google::Auth::ParseError](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-ParseError.md.txt)
- [Google::Auth::UnexpectedStatusError](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-UnexpectedStatusError.md.txt)

## Methods

### #credential_type_name

```ruby
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

```ruby
def details() -> Hash
```
All details passed in the options hash when creating the error
**Returns**

- (Hash) --- Additional details about the error

### #principal

```ruby
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