ConfigLoadException.cs 693 B

123456789101112131415161718
  1. namespace RackPeek.Domain.Helpers;
  2. /// <summary>
  3. /// The config file exists but cannot be read as a RackPeek document — damaged,
  4. /// truncated, or not YAML. Distinct from an unreadable store (IO errors), which is
  5. /// tolerated at boot: a damaged file must fail loudly on every read and write so a
  6. /// partial or empty inventory is never served, and never persisted over the
  7. /// user's file (#337).
  8. /// </summary>
  9. public sealed class ConfigLoadException : Exception {
  10. public ConfigLoadException(string message)
  11. : base(message) {
  12. }
  13. public ConfigLoadException(string message, Exception innerException)
  14. : base(message, innerException) {
  15. }
  16. }