Class ErrorMsg
java.lang.Object
com.sun.jdo.spi.persistence.support.ejb.ejbqlc.ErrorMsg
This is a helper class to report error messages from the EJBQL compiler.
- Author:
- Michael Bouschen, Shing Wai Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis method throws an EJBQLException indicating an user error.static voidThis method throws an EJBQLException indicating an user error.static voidThis method throws an EJBQLException indicating an user error.static voidThis method is called in the case of an fatal internal error.static voidThis method is called in the case of an fatal internal error.static voidThis method is called when we want to log an exception in a given level.static voidunsupported(int line, int col, String text) This method throws an UnsupportedOperationException indicating an unsupported feature.
-
Constructor Details
-
ErrorMsg
public ErrorMsg()
-
-
Method Details
-
error
This method throws an EJBQLException indicating an user error.- Parameters:
line- line numbercol- column numbertext- error message- Throws:
EJBQLException- describes the user error.
-
error
This method throws an EJBQLException indicating an user error.- Parameters:
text- error messagecause- the cause of the error- Throws:
EJBQLException- describes the user error.
-
error
This method throws an EJBQLException indicating an user error.- Parameters:
text- error message- Throws:
EJBQLException- describes the user error.
-
unsupported
This method throws an UnsupportedOperationException indicating an unsupported feature.- Parameters:
line- line numbercol- column numbertext- message- Throws:
UnsupportedOperationException- describes the unsupported feature.
-
fatal
This method is called in the case of an fatal internal error.- Parameters:
text- error message- Throws:
EJBQLException- describes the fatal internal error.
-
fatal
This method is called in the case of an fatal internal error.- Parameters:
text- error messagenested- the cause of the error- Throws:
EJBQLException- describes the fatal internal error.
-
log
This method is called when we want to log an exception in a given level. Note that all other methods in this class do not log a stack trace.- Parameters:
level- log leveltext- error messagenested- the cause of the error- Throws:
EJBQLException- describes the fatal internal error.
-