-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathFileException.cs
More file actions
33 lines (30 loc) · 804 Bytes
/
FileException.cs
File metadata and controls
33 lines (30 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.IO;
using Waher.Events;
using Waher.Persistence.Exceptions;
namespace Waher.Persistence.Files
{
/// <summary>
/// Exception related to a file.
/// </summary>
public class FileException : CollectionException, IEventObject
{
private readonly string fileName;
/// <summary>
/// Exception related to a file.
/// </summary>
/// <param name="Message">Exception message</param>
/// <param name="FileName">File Name</param>
/// <param name="Collection">Corresponding collection.</param>
public FileException(string Message, string FileName, string Collection)
: base(Message, Collection)
{
this.fileName = FileName;
}
/// <summary>
/// File name.
/// </summary>
public string Object => this.fileName;
}
}