org.openanzo.glitter.exception
Class UnknownPrefixException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openanzo.glitter.syntax.concrete.ParseException
              extended by org.openanzo.glitter.exception.UnknownPrefixException
All Implemented Interfaces:
java.io.Serializable

public class UnknownPrefixException
extends ParseException

Parse-time error indicating that a prefixed name had a prefix that was not bound to a URI.

Author:
lee
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openanzo.glitter.syntax.concrete.ParseException
currentToken, expectedTokenSequences, tokenImage
 
Constructor Summary
UnknownPrefixException(java.lang.String prefix)
           
 
Method Summary
 java.lang.String getMessage()
          This method has the standard behavior when this object has been created using the standard constructors.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownPrefixException

public UnknownPrefixException(java.lang.String prefix)
Parameters:
prefix - The unbound prefix
Method Detail

getMessage

public java.lang.String getMessage()
Description copied from class: ParseException
This method has the standard behavior when this object has been created using the standard constructors. Otherwise, it uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it. If this object has been created due to a parse error, and you do not catch it (it gets thrown from the parser), then this method is called during the printing of the final stack trace, and hence the correct error message gets displayed.

Overrides:
getMessage in class ParseException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.