Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Added a "." (dot) at the end of each Milky exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laiteux committed Oct 26, 2020
1 parent d8a0e88 commit 40832b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/Milky/Checker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task StartAsync()
{
if (Info.Status != CheckerStatus.Idle)
{
throw new Exception("Checker already started");
throw new Exception("Checker already started.");
}

_ = StartCpmCounterAsync();
Expand Down Expand Up @@ -115,11 +115,11 @@ public void End()
{
if (Info.Status == CheckerStatus.Idle)
{
throw new Exception("Checker not started");
throw new Exception("Checker not started.");
}
else if (Info.Status == CheckerStatus.Done)
{
throw new Exception("Checker already ended");
throw new Exception("Checker already ended.");
}

Info.End = DateTime.Now;
Expand All @@ -130,7 +130,7 @@ public void Pause()
{
if (Info.Status != CheckerStatus.Running)
{
throw new Exception("Checker not running");
throw new Exception("Checker not running.");
}

Info.LastPause = DateTime.Now;
Expand All @@ -142,7 +142,7 @@ public TimeSpan Resume()
{
if (Info.Status != CheckerStatus.Paused)
{
throw new Exception("Checker not paused");
throw new Exception("Checker not paused.");
}

TimeSpan pauseDuration = DateTime.Now - Info.LastPause;
Expand Down
2 changes: 1 addition & 1 deletion src/Milky/CheckerBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void SetUpHttpClientLibrary()
}
else if (_httpClientLibrary.Items.Count == 0)
{
throw new Exception("No (valid) proxy loaded");
throw new Exception("No (valid) proxy loaded.");
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions src/Milky/Utilities/Library.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal void Fill(int till)
{
if (Items.Count == 0)
{
throw new Exception("Library contains 0 items");
throw new Exception("Library contains 0 items.");
}

int beforelItemsCount = Items.Count;
Expand All @@ -45,7 +45,7 @@ internal void RandomlyFill(int till)
{
if (Items.Count == 0)
{
throw new Exception("Library contains 0 items");
throw new Exception("Library contains 0 items.");
}

int beforelItemsCount = Items.Count;
Expand Down

0 comments on commit 40832b9

Please sign in to comment.