InvalidSequenceException
extends InvalidArgumentException
in package
Class InvalidSequenceException
Tags
Table of Contents
Methods
- invalidSymbol() : InvalidSequenceException
- Builds the exception raised when a symbol does not belong to the alphabet of the value object.
- unsupportedMolType() : InvalidSequenceException
- Builds the exception raised when a molecule type cannot be mapped to a value object.
Methods
invalidSymbol()
Builds the exception raised when a symbol does not belong to the alphabet of the value object.
public
static invalidSymbol(string $sMolType, string $sSymbol, int $iPosition) : InvalidSequenceException
Parameters
- $sMolType : string
-
The molecule type of the rejected value object (DNA, RNA, PROTEIN)
- $sSymbol : string
-
The offending symbol
- $iPosition : int
-
Zero-based position of the offending symbol
Return values
InvalidSequenceExceptionunsupportedMolType()
Builds the exception raised when a molecule type cannot be mapped to a value object.
public
static unsupportedMolType(string $sMolType) : InvalidSequenceException
Parameters
- $sMolType : string
-
The unsupported molecule type