org.apache.jdo.impl.jdoql.jdoqlc
Class ErrorMsg

java.lang.Object
  extended by org.apache.jdo.impl.jdoql.jdoqlc.ErrorMsg

public class ErrorMsg
extends java.lang.Object

Author:
Michael Bouschen

Field Summary
protected  java.lang.String context
          The context is included in an error message.
protected static I18NHelper msg
          I18N support
 
Constructor Summary
ErrorMsg()
           
 
Method Summary
 void error(int line, int col, java.lang.String text)
          Indicates an error situation.
 void fatal(java.lang.String text)
          Indicates a fatal situation (implementation error).
 void fatal(java.lang.String text, java.lang.Exception nested)
          Indicates a fatal situation (implementation error).
 java.lang.String getContext()
          Return the current context string
 void setContext(java.lang.String name)
          Set the specified string as the current context string.
 void unsupported(int line, int col, java.lang.String text)
          Indicates that a feature is not supported by the current release.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected java.lang.String context
The context is included in an error message. It usually defines the query method with the invalid definition (such as declareParameters, setFilter, etc.).


msg

protected static final I18NHelper msg
I18N support

Constructor Detail

ErrorMsg

public ErrorMsg()
Method Detail

getContext

public java.lang.String getContext()
Return the current context string


setContext

public void setContext(java.lang.String name)
Set the specified string as the current context string.


error

public void error(int line,
                  int col,
                  java.lang.String text)
           throws JDOQueryException
Indicates an error situation.

Parameters:
line - line number
col - column number
text - error message
Throws:
JDOQueryException

unsupported

public void unsupported(int line,
                        int col,
                        java.lang.String text)
                 throws javax.jdo.JDOUnsupportedOptionException
Indicates that a feature is not supported by the current release.

Parameters:
line - line number
col - column number
text - message
Throws:
javax.jdo.JDOUnsupportedOptionException

fatal

public void fatal(java.lang.String text)
           throws javax.jdo.JDOFatalInternalException
Indicates a fatal situation (implementation error).

Parameters:
text - error message
Throws:
javax.jdo.JDOFatalInternalException

fatal

public void fatal(java.lang.String text,
                  java.lang.Exception nested)
           throws javax.jdo.JDOFatalInternalException
Indicates a fatal situation (implementation error).

Parameters:
text - error message
Throws:
javax.jdo.JDOFatalInternalException


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.