Package 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:
Serializable
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
is enabled (but it is acceptable
to throw it even outside of prefix mode).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class chemaxon.naming.NameFormatException
NameFormatException.FilteredCase
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNamePrefixException
(String prefix) NamePrefixException
(String prefix, String incompleteToken) -
Method Summary
Methods inherited from class chemaxon.naming.NameFormatException
fillInStackTrace, getPrefix
Methods inherited from class chemaxon.formats.MolFormatException
getFinalCause, getLineNumberInFile, getLineNumberInRecord, setLineNumberInFile, setLineNumberInRecord
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
token
-
-
Constructor Details
-
NamePrefixException
public NamePrefixException() -
NamePrefixException
- Parameters:
prefix
- the text that could be parsed as a name prefix.
-
NamePrefixException
- 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 the token.
-