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::ClassMethods.

Class methods to be added to including classes

## Methods

### #with_details

```ruby
def with_details(message, credential_type_name:, principal:) -> Error
```
Creates a new error with detailed information
**Parameters**

- **message** (String) --- The error message
- **credential_type_name** (String) --- The credential type that raised the error
- **principal** (String, Symbol) --- The principal for the authentication flow
**Returns**

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