diff --git a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentExceptions.cs b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentExceptions.cs
index 5f17ddf6c..9b58ed6d0 100644
--- a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentExceptions.cs
+++ b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentExceptions.cs
@@ -3,10 +3,27 @@
namespace Microsoft.AutoGen.Contracts.Python;
+///
+/// Exception thrown when a handler cannot process the given message.
+///
public class CantHandleException : Exception
{
+ ///
+ /// Initializes a new instance of the class.
+ ///
public CantHandleException() : base("The handler cannot process the given message.") { }
+
+ ///
+ /// Initializes a new instance of the class with a custom error message.
+ ///
+ /// The custom error message.
public CantHandleException(string message) : base(message) { }
+
+ ///
+ /// Initializes a new instance of the class with a custom error message and an inner exception.
+ ///
+ /// The custom error message.
+ /// The inner exception that caused this error.
public CantHandleException(string message, Exception innerException) : base(message, innerException) { }
}
@@ -15,21 +32,69 @@ public class CantHandleException : Exception
///
public class UndeliverableException : Exception
{
+ ///
+ /// Initializes a new instance of the class.
+ ///
public UndeliverableException() : base("The message cannot be delivered.") { }
+
+ ///
+ /// Initializes a new instance of the class with a custom error message.
+ ///
+ /// The custom error message.
public UndeliverableException(string message) : base(message) { }
+
+ ///
+ /// Initializes a new instance of the class with a custom error message and an inner exception.
+ ///
+ /// The custom error message.
+ /// The inner exception that caused this error.
public UndeliverableException(string message, Exception innerException) : base(message, innerException) { }
}
+///
+/// Exception thrown when a message is dropped.
+///
public class MessageDroppedException : Exception
{
+ ///
+ /// Initializes a new instance of the class.
+ ///
public MessageDroppedException() : base("The message was dropped.") { }
+
+ ///
+ /// Initializes a new instance of the class with a custom error message.
+ ///
+ /// The custom error message.
public MessageDroppedException(string message) : base(message) { }
+
+ ///
+ /// Initializes a new instance of the class with a custom error message and an inner exception.
+ ///
+ /// The custom error message.
+ /// The inner exception that caused this error.
public MessageDroppedException(string message, Exception innerException) : base(message, innerException) { }
}
+///
+/// Exception thrown when an attempt is made to access an unavailable value, such as a remote resource.
+///
public class NotAccessibleError : Exception
{
+ ///
+ /// Initializes a new instance of the class.
+ ///
public NotAccessibleError() : base("The requested value is not accessible.") { }
+
+ ///
+ /// Initializes a new instance of the class with a custom error message.
+ ///
+ /// The custom error message.
public NotAccessibleError(string message) : base(message) { }
+
+ ///
+ /// Initializes a new instance of the class with a custom error message and an inner exception.
+ ///
+ /// The custom error message.
+ /// The inner exception that caused this error.
public NotAccessibleError(string message, Exception innerException) : base(message, innerException) { }
}