Class InvalidChooseException
Exception that is thrown when a dice term is constructed with a 'k' choose operation to keep an invalid number of dice.
Implements
Inherited Members
Namespace: GoRogue.DiceNotation.Exceptions
Assembly: GoRogue.dll
Syntax
public class InvalidChooseException : Exception, ISerializable
Constructors
View SourceInvalidChooseException()
Constructor.
Declaration
public InvalidChooseException()
InvalidChooseException(string)
Constructor, taking a specified error message.
Declaration
public InvalidChooseException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
InvalidChooseException(string, Exception)
Constructor, taking a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public InvalidChooseException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
Exception | innerException | The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. |