chemaxon.naming
Class NamePrefixException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
chemaxon.formats.MolFormatException
chemaxon.naming.NameFormatException
chemaxon.naming.NamePrefixException
- All Implemented Interfaces:
- java.io.Serializable
public class NamePrefixException
- extends NameFormatException
This exception should be thrown by a 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
has been successfully enabled (but it is acceptable to throw it even outside of prefix mode).
- Author:
- Daniel Bonniot
- See Also:
- Serialized Form
Field Summary |
java.lang.String |
token
|
Methods inherited from class java.lang.Throwable |
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
token
public final java.lang.String token
NamePrefixException
public NamePrefixException()
NamePrefixException
public NamePrefixException(java.lang.String prefix)
- Parameters:
prefix
- the text that could be parsed as a name prefix.
NamePrefixException
public NamePrefixException(java.lang.String prefix,
java.lang.String incompleteToken)
- Parameters:
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 to token.
getParsed
public java.lang.String getParsed()
- Returns:
- the text that could be parsed as a name prefix.