chemaxon.naming
Class NamePrefixException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by chemaxon.formats.MolFormatException
                  extended by chemaxon.naming.NameFormatException
                      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class chemaxon.naming.NameFormatException
NameFormatException.FilteredCase
 
Field Summary
 java.lang.String token
           
 
Constructor Summary
NamePrefixException()
           
NamePrefixException(java.lang.String prefix)
           
NamePrefixException(java.lang.String prefix, java.lang.String incompleteToken)
           
 
Method Summary
 java.lang.String getParsed()
           
 
Methods inherited from class chemaxon.naming.NameFormatException
fillInStackTrace
 
Methods inherited from class chemaxon.formats.MolFormatException
getFinalCause, getLineNumberInFile, getLineNumberInRecord, setLineNumberInFile, setLineNumberInRecord
 
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
 

Field Detail

token

public final java.lang.String token
Constructor Detail

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.
Method Detail

getParsed

public java.lang.String getParsed()
Returns:
the text that could be parsed as a name prefix.