public class ErrorMsg
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
context
The context is included in an error message.
|
protected static I18NHelper |
msg
I18N support
|
Constructor and Description |
---|
ErrorMsg() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected java.lang.String context
protected static final I18NHelper msg
public java.lang.String getContext()
public void setContext(java.lang.String name)
public void error(int line, int col, java.lang.String text) throws JDOQueryException
line
- line numbercol
- column numbertext
- error messageJDOQueryException
public void unsupported(int line, int col, java.lang.String text) throws javax.jdo.JDOUnsupportedOptionException
line
- line numbercol
- column numbertext
- messagejavax.jdo.JDOUnsupportedOptionException
public void fatal(java.lang.String text) throws javax.jdo.JDOFatalInternalException
text
- error messagejavax.jdo.JDOFatalInternalException
public void fatal(java.lang.String text, java.lang.Exception nested) throws javax.jdo.JDOFatalInternalException
text
- error messagejavax.jdo.JDOFatalInternalException
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.