diff --git a/EDPlayerJournal/Entries/Entry.cs b/EDPlayerJournal/Entries/Entry.cs index e3c1c42..a7367b4 100644 --- a/EDPlayerJournal/Entries/Entry.cs +++ b/EDPlayerJournal/Entries/Entry.cs @@ -4,11 +4,6 @@ using System.Runtime.InteropServices; namespace EDPlayerJournal.Entries; -public class InvalidJournalEntryException : Exception { - public InvalidJournalEntryException() { } - public InvalidJournalEntryException(string message) : base(message) { } -} - /// /// 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 diff --git a/EDPlayerJournal/JournalException.cs b/EDPlayerJournal/JournalException.cs index fe7290f..47e3d76 100644 --- a/EDPlayerJournal/JournalException.cs +++ b/EDPlayerJournal/JournalException.cs @@ -1,7 +1,16 @@ -using System; +namespace EDPlayerJournal; -namespace EDPlayerJournal; -public class JournalException : Exception { - public JournalException(string message) : base(message) { - } +/// +/// Thrown when the parser encounters an invalid journal entry +/// +public class InvalidJournalEntryException : Exception { + public InvalidJournalEntryException() { } + public InvalidJournalEntryException(string message) : base(message) { } +} + +/// +/// Thrown when the parser finds an invalid journal file +/// +public class JournalException : Exception { + public JournalException(string message) : base(message) {} }