-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from meilisearch/changes_tenant_token
- Loading branch information
Showing
4 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/Meilisearch/Errors/MeilisearchTenantTokenApiKeyUidInvalid.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
|
||
namespace Meilisearch | ||
{ | ||
/// <summary> | ||
/// Represents an exception thrown when `apiKey` is not present | ||
/// to sign correctly the Tenant Token generation. | ||
/// </summary> | ||
public class MeilisearchTenantTokenApiKeyUidInvalid : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="MeilisearchTenantTokenApiKeyUidInvalid"/> class. | ||
/// </summary> | ||
public MeilisearchTenantTokenApiKeyUidInvalid() | ||
: base("Cannot generate a signed token without a valid apiKeyUid. Provide one in the method params.") | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters