Table of Contents

Class ErrorState

Namespace
Loehnert.Lisrt.Can.Protocol
Assembly
Loehnert.Lisrt.Can.Protocol.dll

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

key string

The unique key.

exceptionBuilder Func<Exception>

Builder for the exception thrown with Throw().

Methods

Throw()

Throws an exception which is representative for this state.

public void Throw()