Class SkillWatcherErrorEventArgs
Event arguments for the Error event.
public sealed class SkillWatcherErrorEventArgs : EventArgs
- Inheritance
-
SkillWatcherErrorEventArgs
- Inherited Members
Examples
Surfacing watcher errors without crashing the host process:
using LMKit.Agents.Skills;
using var watcher = new SkillWatcher(@"./skills");
watcher.Error += (s, e) =>
Console.Error.WriteLine($"[skill watcher] {e.Path}: {e.Exception.Message}");
watcher.Start();
Properties
- Exception
Gets the exception that occurred.
- Path
Gets the path that caused the error.
- Timestamp
Gets the time when the error occurred.