public class InvalidUnderlyingTokenException extends java.lang.RuntimeException
SingleSequenceDataAdapter
was found.
In case of a SingleCharSequenceAdapter this happens if a token which has a string representation
that is not exactly one character long was tried to convert and
SingleCharSequenceAdapter.isCutLongRepresentations() was set to false.
In case of SingleBioJavaSequenceAdapter this happens if no compound could be found in the specified
compound set which was associated with the string representation of the token in question and
SingleBioJavaSequenceAdapter#isAllowUnkownCompounds() was false.
Other implementations in- and outside LibrAlign might also throw this exception for similar reasons.
| Constructor and Description |
|---|
InvalidUnderlyingTokenException(SingleSequenceDataAdapter<?> adapter,
java.lang.Object token,
java.lang.String representation)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
SingleSequenceDataAdapter<?> |
getAdapter() |
java.lang.String |
getRepresentation() |
java.lang.Object |
getToken() |
public InvalidUnderlyingTokenException(SingleSequenceDataAdapter<?> adapter, java.lang.Object token, java.lang.String representation)
adapter - the adapter that tries to convert the token to a charactertoken - the token that could not be convertedrepresentation - the invalid representation of that tokenpublic SingleSequenceDataAdapter<?> getAdapter()
public java.lang.Object getToken()
public java.lang.String getRepresentation()