summaryrefslogtreecommitdiff
path: root/src/Agent.Core/Ollama/OllamaException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Agent.Core/Ollama/OllamaException.cs')
-rw-r--r--src/Agent.Core/Ollama/OllamaException.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Agent.Core/Ollama/OllamaException.cs b/src/Agent.Core/Ollama/OllamaException.cs
new file mode 100644
index 0000000..6b0c158
--- /dev/null
+++ b/src/Agent.Core/Ollama/OllamaException.cs
@@ -0,0 +1,7 @@
+namespace Agent.Core.Ollama;
+
+public sealed class OllamaException(string message, bool transient, Exception? innerException = null)
+ : Exception(message, innerException)
+{
+ public bool IsTransient { get; } = transient;
+}