< Dice‎ | DiceException
Revision as of 18:08, 12 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|DiceException Constructor (DiceErrorCode, Exception)}} Constructs a DiceException for the given DiceErrorCode and the given Exception as its in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DiceException Constructor (DiceErrorCode, Exception)

From DiceRoller Documentation

Constructs a DiceException for the given DiceErrorCode and the given Exception as its inner exception.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

public DiceException(
    DiceErrorCode error,
    Exception innerException
)

Parameters

error
Type: Dice.DiceErrorCode
What error this exception represents.
innerException
Type: System.Exception
The inner exception.

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, Exception) overload instead.