mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
b19860b8a8
* Move Purview integration logic into middleware * Improve error handling and user id management * Rename purview package * Handle 402s more explicitly; add Middleware generation methods; don't ignore exceptions * Use DI container; pass scope id to PC * Add protection scope caching * Wrap more exceptions in PurviewClient * Remove block check dedup; add tests * Refactor PurviewWrapper intialization; Add unit tests * Use different .Use method and add IDisposable stub * Add background job processing for Purview * Misc comment cleanup * Apply copilot comments * Fix formatting * Formatting other files to fix pipeline * Small updates to settings and exceptions * Add README * Move Purview sample * Address review comments and update XML comments * Newline after namespace * Move public Purview classes to single namespace; Clean up csproj and slnx * Commit the renames * Remove unused openAI dependency --------- Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
28 lines
611 B
C#
28 lines
611 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System;
|
|
|
|
namespace Microsoft.Agents.AI.Purview;
|
|
|
|
/// <summary>
|
|
/// Exception for rate limit exceeded errors from Purview service.
|
|
/// </summary>
|
|
public class PurviewRateLimitException : PurviewException
|
|
{
|
|
/// <inheritdoc />
|
|
public PurviewRateLimitException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public PurviewRateLimitException() : base()
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public PurviewRateLimitException(string? message, Exception? innerException) : base(message, innerException)
|
|
{
|
|
}
|
|
}
|