Lean
$LEAN_TAG$
TooManyFailedAttemptsException.cs
1
namespace
QuantConnect.ToolBox.RandomDataGenerator
2
{
3
/// <summary>
4
/// Exception thrown when multiple attempts to generate a valid random value end in failure
5
/// </summary>
6
public
class
TooManyFailedAttemptsException
:
RandomValueGeneratorException
7
{
8
public
TooManyFailedAttemptsException
(
string
method,
int
attempts)
9
: base($
"Failed to generate a valid value for '{method}' after {attempts} attempts."
)
10
{
11
}
12
}
13
}
ToolBox
RandomDataGenerator
TooManyFailedAttemptsException.cs
Generated by
1.8.17