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(String message)
Make the exception with a message. 
 | 
IllegalSymbolException(Symbol sym,
                      String message)
Make the exception with a message and a symbol. 
 | 
IllegalSymbolException(Throwable cause,
                      String message)  | 
IllegalSymbolException(Throwable cause,
                      Symbol sym,
                      String message)  | 
| Modifier and Type | Method and Description | 
|---|---|
Symbol | 
getSymbol()
Retrieve the symbol that caused this exception, or null. 
 | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IllegalSymbolException(String message)
public IllegalSymbolException(Symbol sym, String message)
public IllegalSymbolException(Throwable cause, String message)
public IllegalSymbolException(Throwable cause, Symbol sym, String message)
Copyright © 2020 BioJava. All rights reserved.