ErrorMsgpublic class ErrorMsg extends Object
Fields Summary |
---|
protected String | context | protected static final ResourceBundle | messagesI18N support | private static com.sun.jdo.spi.persistence.utility.logging.Logger | loggerThe logger |
Methods Summary |
---|
public void | error(int line, int col, java.lang.String msg)Indicates an error situation.
JDOQueryException ex;
if (line > 1)
{
// include line and column info
Object args[] = {context, new Integer(line), new Integer(col), msg};
ex = new JDOQueryException(I18NHelper.getMessage(
messages, "jqlc.errormsg.generic.msglinecolumn", args)); //NOI18N
}
else if (col > 0)
{
// include column info
Object args[] = {context, new Integer(col), msg};
ex = new JDOQueryException(I18NHelper.getMessage(
messages, "jqlc.errormsg.generic.msgcolumn", args)); //NOI18N
}
else
{
Object args[] = {context, msg};
ex = new JDOQueryException(I18NHelper.getMessage(
messages, "jqlc.errormsg.generic.msg", args)); //NOI18N
}
logger.throwing("jqlc.ErrorMsg", "error", ex);
throw ex;
| public void | fatal(java.lang.String msg)Indicates a fatal situation (implementation error).
JDOFatalInternalException ex = new JDOFatalInternalException(msg);
logger.throwing("jqlc.ErrorMsg", "fatal", ex);
throw ex;
| public void | fatal(java.lang.String msg, java.lang.Exception nested)Indicates a fatal situation (implementation error).
JDOFatalInternalException ex = new JDOFatalInternalException(msg, nested);
logger.throwing("jqlc.ErrorMsg", "fatal", ex);
throw ex;
| public java.lang.String | getContext()
return context;
| public void | setContext(java.lang.String name)
context = name;
| public void | unsupported(int line, int col, java.lang.String msg)Indicates that a feature is not supported by the current release.
JDOUnsupportedOptionException ex;
if (line > 1)
{
// include line and column info
Object args[] = {context, new Integer(line), new Integer(col), msg};
ex = new JDOUnsupportedOptionException(I18NHelper.getMessage(
messages, "jqlc.errormsg.generic.msglinecolumn", args)); //NOI18N
}
else if (col > 0)
{
// include column info
Object args[] = {context, new Integer(col), msg};
ex = new JDOUnsupportedOptionException(I18NHelper.getMessage(
messages, "jqlc.errormsg.generic.msgcolumn", args)); //NOI18N
}
else
{
Object args[] = {context, msg};
ex = new JDOUnsupportedOptionException(I18NHelper.getMessage(
messages, "jqlc.errormsg.generic.msg", args)); //NOI18N
}
logger.throwing("jqlc.ErrorMsg", "unsupported", ex);
throw ex;
|
|