Skip to content

Commit

Permalink
Remove default Inner Exceptions (MonoGame#7800)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast authored and bytinggames committed Oct 8, 2022
1 parent 3c85231 commit 16bb508
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MonoGame.Framework/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public TimeSpan InactiveSleepTime
set
{
if (value < TimeSpan.Zero)
throw new ArgumentOutOfRangeException("The time must be positive.", default(Exception));
throw new ArgumentOutOfRangeException("The time must be positive.");

_inactiveSleepTime = value;
}
Expand All @@ -216,11 +216,11 @@ public TimeSpan MaxElapsedTime
{
if (value < TimeSpan.Zero)
throw new ArgumentOutOfRangeException(
"The time must be positive.", default(Exception));
"The time must be positive.");

if (value < _targetElapsedTime)
throw new ArgumentOutOfRangeException(
"The time must be at least TargetElapsedTime", default(Exception));
"The time must be at least TargetElapsedTime");

_maxElapsedTime = value;
}
Expand Down Expand Up @@ -258,11 +258,11 @@ public TimeSpan TargetElapsedTime

if (value <= TimeSpan.Zero)
throw new ArgumentOutOfRangeException(
"The time must be positive and non-zero.", default(Exception));
"The time must be positive and non-zero.");

if (value > _maxElapsedTime)
throw new ArgumentOutOfRangeException(
"The time can not be larger than MaxElapsedTime", default(Exception));
"The time can not be larger than MaxElapsedTime");

if (value != _targetElapsedTime)
{
Expand Down

0 comments on commit 16bb508

Please sign in to comment.