Throws a precanned IllegalSymbolException if the symbol is not contained within this Alphabet.

Namespace:  BioSharp.Core.Bio.Symbol
Assembly:  BioSharp.Core (in BioSharp.Core.dll) Version: 0.1.3191.26120 (0.1.0.0)

Syntax

C#
void Validate(
	ISymbol sym
)

Parameters

sym
Type: BioSharp.Core.Bio.Symbol..::.ISymbol
the Symbol to validate

Remarks

This function is used all over the code to validate symbols as they enter a method. Also, the code is littered with catches for IllegalSymbolException. There is a preferred style of handling this, which should be covererd in the package documentation.

Exceptions

ExceptionCondition
BioSharp.Core.Bio.Symbol..::.IllegalSymbolExceptionif sym is not contained in this alphabet

See Also