Class ImpossibleDieException
Exception that is thrown when a die is attempted to be constructed with an invalid number of sides.
Implements
Inherited Members
Namespace: GoRogue.DiceNotation.Exceptions
Assembly: GoRogue.dll
Syntax
public class ImpossibleDieException : Exception, ISerializable
Constructors
View SourceImpossibleDieException()
Constructor.
Declaration
public ImpossibleDieException()
ImpossibleDieException(string)
Constructor, taking a specified error message.
Declaration
public ImpossibleDieException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
ImpossibleDieException(string, Exception)
Constructor, taking a specified error message and the exception that caused this exception.
Declaration
public ImpossibleDieException(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. |