From 8ab71a0e87f9d2a8e4c841c7a686b573ceea4062 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn Date: Fri, 4 Sep 2026 11:55:38 -0500 Subject: [PATCH] feat: add strongly typed exceptions for retrieval failures --- .../DidDocumentNotFoundException.cs | 28 +++++++++++++++++++ .../Exceptions/DidNotFoundException.cs | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 src/StevanFreeborn.Atproto.IdentityResolver/Exceptions/DidDocumentNotFoundException.cs create mode 100644 src/StevanFreeborn.Atproto.IdentityResolver/Exceptions/DidNotFoundException.cs diff --git a/src/StevanFreeborn.Atproto.IdentityResolver/Exceptions/DidDocumentNotFoundException.cs b/src/StevanFreeborn.Atproto.IdentityResolver/Exceptions/DidDocumentNotFoundException.cs new file mode 100644 index 0000000..8b0ba11 --- /dev/null +++ b/src/StevanFreeborn.Atproto.IdentityResolver/Exceptions/DidDocumentNotFoundException.cs @@ -0,0 +1,28 @@ +namespace StevanFreeborn.Atproto.IdentityResolver.Exceptions; + +/// +/// +/// +public class DidDocumentNotFoundException : Exception +{ + /// + /// + /// + public DidDocumentNotFoundException() + { + } + + /// + /// + /// + public DidDocumentNotFoundException(string message) : base(message) + { + } + + /// + /// + /// + public DidDocumentNotFoundException(string message, Exception innerException) : base(message, innerException) + { + } +} \ No newline at end of file diff --git a/src/StevanFreeborn.Atproto.IdentityResolver/Exceptions/DidNotFoundException.cs b/src/StevanFreeborn.Atproto.IdentityResolver/Exceptions/DidNotFoundException.cs new file mode 100644 index 0000000..b4cd721 --- /dev/null +++ b/src/StevanFreeborn.Atproto.IdentityResolver/Exceptions/DidNotFoundException.cs @@ -0,0 +1,28 @@ +namespace StevanFreeborn.Atproto.IdentityResolver.Exceptions; + +/// +/// +/// +public class DidNotFoundException : Exception +{ + /// + /// + /// + public DidNotFoundException() + { + } + + /// + /// + /// + public DidNotFoundException(string message) : base(message) + { + } + + /// + /// + /// + public DidNotFoundException(string message, Exception innerException) : base(message, innerException) + { + } +} \ No newline at end of file