forked from gongxuegit/tiku-backend.net
feat: modularize external providers
This commit is contained in:
@@ -284,6 +284,16 @@ public sealed class ExceptionHandlingMiddleware(
|
||||
return;
|
||||
}
|
||||
|
||||
if (exception is TenantExternalProviderException externalProviderException)
|
||||
{
|
||||
await WriteProblemAsync(
|
||||
context,
|
||||
externalProviderException.Message,
|
||||
StatusCodes.Status400BadRequest,
|
||||
externalProviderException.Code);
|
||||
return;
|
||||
}
|
||||
|
||||
if (exception is ObjectStorageException storageException)
|
||||
{
|
||||
await WriteProblemAsync(
|
||||
|
||||
Reference in New Issue
Block a user