Class ErrorState
Represents the error state of the board.
[SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:File may only contain a single type", Justification = "Types belong together.")]
public class ErrorState : State, IEquatable<State>
- Inheritance
-
ErrorState
- Implements
- Inherited Members
Constructors
ErrorState(string, Func<Exception>)
Initializes a new instance of the ErrorState class.
public ErrorState(string key, Func<Exception> exceptionBuilder)
Parameters
keystringThe unique key.
exceptionBuilderFunc<Exception>Builder for the exception thrown with Throw().
Methods
Throw()
Throws an exception which is representative for this state.
public void Throw()