< Dice | DiceException
DiceException Constructor (DiceErrorCode)
From DiceRoller Documentation
Constructs a DiceException for the given DiceErrorCode.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public DiceException(
DiceErrorCode error
)
Parameters
- error
- Type: Dice.DiceErrorCode
- What error this exception represents.
Remarks
The exception's Message property is initialized to the description string of the DiceErrorCode. These strings match what is shown on the documentation page's member list. This overload should not be used if the description string contains the format parameter {0}, use the DiceException(DiceErrorCode, Object) overload instead.