#### [Abblix\.Jwt](https://www.abblix.com/docs/api/abblix-jwt 'index')
### [Abblix\.Jwt\.ExternalKeys](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.ExternalKeys 'Abblix\.Jwt\.ExternalKeys')

## KeyCustodianFailedException Class

Wraps a custodian failure that waiting will not resolve: the identity lacks the permission, the key is gone
or disabled, the request was malformed\. The library answers 500, which is what a condition that will not
clear on its own deserves, and never puts this exception's text in the response\.

```csharp
public sealed class KeyCustodianFailedException : System.Exception
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → [System\.Exception](https://learn.microsoft.com/en-us/dotnet/api/system.exception 'System\.Exception') → KeyCustodianFailedException

### Remarks
This is the seam's default reading of a failure it cannot place\. A custodian says "not now" by throwing
[KeyCustodianUnavailableException](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.ExternalKeys.KeyCustodianUnavailableException 'Abblix\.Jwt\.ExternalKeys\.KeyCustodianUnavailableException'); everything else arrives here, because a retry promised on a
guess is worse than one not offered\. The type exists so the endpoints can recognize a custodian failure at
all: an exception that never passed through the seam is none of the library's business and keeps traveling
to whatever the host has around it\.
### Constructors

## KeyCustodianFailedException\(string, Exception\) Constructor {#Abblix.Jwt.ExternalKeys.KeyCustodianFailedException.KeyCustodianFailedException(string,System.Exception)}

Reports that the custodian refused [operation](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.ExternalKeys.KeyCustodianFailedException#Abblix.Jwt.ExternalKeys.KeyCustodianFailedException.KeyCustodianFailedException(string,System.Exception).operation 'Abblix\.Jwt\.ExternalKeys\.KeyCustodianFailedException\.KeyCustodianFailedException\(string, System\.Exception\)\.operation') for a reason a later attempt will meet
again\.

```csharp
public KeyCustodianFailedException(string operation, System.Exception innerException);
```
#### Parameters

###### `operation` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Jwt.ExternalKeys.KeyCustodianFailedException.KeyCustodianFailedException(string,System.Exception).operation}

What was being asked of the custodian, named for the log line\.

###### `innerException` [System\.Exception](https://learn.microsoft.com/en-us/dotnet/api/system.exception 'System\.Exception') {#Abblix.Jwt.ExternalKeys.KeyCustodianFailedException.KeyCustodianFailedException(string,System.Exception).innerException}

The failure as the custodian's own client reported it\.
### Properties

## KeyCustodianFailedException\.Operation Property {#Abblix.Jwt.ExternalKeys.KeyCustodianFailedException.Operation}

What was being asked of the custodian when it failed\.

```csharp
public string Operation { get; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')
