|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.spi.persistence.support.ejb.ejbqlc.ErrorMsg
public class ErrorMsg
This is a helper class to report error messages from the EJBQL compiler.
| Constructor Summary | |
|---|---|
ErrorMsg()
|
|
| Method Summary | |
|---|---|
static void |
error(int line,
int col,
java.lang.String text)
This method throws an EJBQLException indicating an user error. |
static void |
error(java.lang.String text)
This method throws an EJBQLException indicating an user error. |
static void |
error(java.lang.String text,
java.lang.Throwable cause)
This method throws an EJBQLException indicating an user error. |
static void |
fatal(java.lang.String text)
This method is called in the case of an fatal internal error. |
static void |
fatal(java.lang.String text,
java.lang.Throwable nested)
This method is called in the case of an fatal internal error. |
static void |
log(int level,
java.lang.String text,
java.lang.Throwable nested)
This method is called when we want to log an exception in a given level. |
static void |
unsupported(int line,
int col,
java.lang.String text)
This method throws an UnsupportedOperationException indicating an unsupported feature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorMsg()
| Method Detail |
|---|
public static void error(int line,
int col,
java.lang.String text)
throws EJBQLException
line - line numbercol - column numbertext - error message
EJBQLException - describes the user error.
public static void error(java.lang.String text,
java.lang.Throwable cause)
throws EJBQLException
text - error messagecause - the cause of the error
EJBQLException - describes the user error.
public static void error(java.lang.String text)
throws EJBQLException
text - error message
EJBQLException - describes the user error.
public static void unsupported(int line,
int col,
java.lang.String text)
throws java.lang.UnsupportedOperationException
line - line numbercol - column numbertext - message
java.lang.UnsupportedOperationException - describes the unsupported
feature.
public static void fatal(java.lang.String text)
throws EJBQLException
text - error message
EJBQLException - describes the fatal internal error.
public static void fatal(java.lang.String text,
java.lang.Throwable nested)
throws EJBQLException
text - error messagenested - the cause of the error
EJBQLException - describes the fatal internal error.
public static void log(int level,
java.lang.String text,
java.lang.Throwable nested)
throws EJBQLException
level - log leveltext - error messagenested - the cause of the error
EJBQLException - describes the fatal internal error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||