forked from gongxuegit/tiku-backend.net
feat: add scoreline dynamic records
This commit is contained in:
@@ -7,6 +7,7 @@ using Tiku.Application.Storage;
|
||||
using Tiku.Infrastructure.Content;
|
||||
using Tiku.Infrastructure.Learning;
|
||||
using Tiku.Infrastructure.QuestionBanks;
|
||||
using Tiku.Infrastructure.Scoreline;
|
||||
|
||||
namespace Tiku.Api.Middleware;
|
||||
|
||||
@@ -139,6 +140,16 @@ public sealed class ExceptionHandlingMiddleware(
|
||||
return;
|
||||
}
|
||||
|
||||
if (exception is ScorelineQueryException scorelineQueryException)
|
||||
{
|
||||
await WriteProblemAsync(
|
||||
context,
|
||||
scorelineQueryException.Message,
|
||||
StatusCodes.Status400BadRequest,
|
||||
scorelineQueryException.Code);
|
||||
return;
|
||||
}
|
||||
|
||||
if (exception is ObjectStorageException storageException)
|
||||
{
|
||||
await WriteProblemAsync(
|
||||
|
||||
Reference in New Issue
Block a user