@PublicAPI public class NamePrefixException extends NameFormatException
NameConverter
to indicate that even though a name cannot be converted
to a structure, it is the prefix of a valid name.
This is only required when prefix mode
is enabled (but it is acceptable
to throw it even outside of prefix mode).
NameFormatException.FilteredCase
Modifier and Type | Field and Description |
---|---|
java.lang.String |
token |
Constructor and Description |
---|
NamePrefixException() |
NamePrefixException(java.lang.String prefix) |
NamePrefixException(java.lang.String prefix,
java.lang.String incompleteToken) |
fillInStackTrace, getPrefix
getFinalCause, getLineNumberInFile, getLineNumberInRecord, setLineNumberInFile, setLineNumberInRecord
public NamePrefixException()
public NamePrefixException(java.lang.String prefix)
prefix
- the text that could be parsed as a name prefix.public NamePrefixException(java.lang.String prefix, java.lang.String incompleteToken)
prefix
- the text that could be parsed as a name prefix.incompleteToken
- the specific part of the prefix which is not complete.
e.g. for "1-methylbenzoic", "oic" could be the token.