public class IllegalSymbolException extends BioException
The usual reason for throwing an IllegalSymbolException is that you are trying to add a symbol to a sequence with an alpabet that does not contain the symbol. This is the sequence/alphabet equivalent of a ClassCastException for objects.
Frequently, these excepions are actualy generated from Alphabet.validate.
Constructor and Description |
---|
IllegalSymbolException(java.lang.String message)
Make the exception with a message.
|
IllegalSymbolException(Symbol sym,
java.lang.String message)
Make the exception with a message and a symbol.
|
IllegalSymbolException(java.lang.Throwable cause,
java.lang.String message) |
IllegalSymbolException(java.lang.Throwable cause,
Symbol sym,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
Symbol |
getSymbol()
Retrieve the symbol that caused this exception, or null.
|
public IllegalSymbolException(java.lang.String message)
public IllegalSymbolException(Symbol sym, java.lang.String message)
public IllegalSymbolException(java.lang.Throwable cause, java.lang.String message)
public IllegalSymbolException(java.lang.Throwable cause, Symbol sym, java.lang.String message)
public Symbol getSymbol()