move invalid entry exception

This commit is contained in:
Florian Stinglmayr 2022-11-24 15:57:07 +01:00
parent a2c4056979
commit a713e450fe
2 changed files with 14 additions and 10 deletions

View File

@ -4,11 +4,6 @@ using System.Runtime.InteropServices;
namespace EDPlayerJournal.Entries;
public class InvalidJournalEntryException : Exception {
public InvalidJournalEntryException() { }
public InvalidJournalEntryException(string message) : base(message) { }
}
/// <summary>
/// Base class for a single entry within the player journal. If no specific sub class is available
/// this class gives basic information, such as EventType or date when it happened. It also allows

View File

@ -1,7 +1,16 @@
using System;
namespace EDPlayerJournal;
namespace EDPlayerJournal;
public class JournalException : Exception {
public JournalException(string message) : base(message) {
}
/// <summary>
/// Thrown when the parser encounters an invalid journal entry
/// </summary>
public class InvalidJournalEntryException : Exception {
public InvalidJournalEntryException() { }
public InvalidJournalEntryException(string message) : base(message) { }
}
/// <summary>
/// Thrown when the parser finds an invalid journal file
/// </summary>
public class JournalException : Exception {
public JournalException(string message) : base(message) {}
}