Add Sentry to catch exceptions.

This commit is contained in:
2025-08-20 18:51:05 +01:00
parent d5ef2c874d
commit c1f4b92548
70 changed files with 1213 additions and 1087 deletions

View File

@@ -30,9 +30,11 @@
// Copyright © 2011-2025 Natalia Portillo
// ****************************************************************************/
using System;
using Aaru.CommonTypes;
using Aaru.CommonTypes.Interfaces;
using Aaru.Logging;
using Sentry;
namespace Aaru.Core;
@@ -67,18 +69,19 @@ public static class ArchiveFormat
break;
}
#pragma warning disable RECS0022 // A catch clause that catches System.Exception and has an empty body
catch
catch(Exception ex)
{
// ignored
SentrySdk.CaptureException(ex);
}
}
// Not recognized
return format;
}
catch
catch(Exception ex)
{
SentrySdk.CaptureException(ex);
return null;
}
}