public class ErrorMsg extends Object
| Constructor and Description |
|---|
ErrorMsg() |
| Modifier and Type | Method and Description |
|---|---|
static void |
error(int line,
int col,
String text)
This method throws an EJBQLException indicating an user error.
|
static void |
error(String text)
This method throws an EJBQLException indicating an user error.
|
static void |
error(String text,
Throwable cause)
This method throws an EJBQLException indicating an user error.
|
static void |
fatal(String text)
This method is called in the case of an fatal internal error.
|
static void |
fatal(String text,
Throwable nested)
This method is called in the case of an fatal internal error.
|
static void |
log(int level,
String text,
Throwable nested)
This method is called when we want to log an exception in a given level.
|
static void |
unsupported(int line,
int col,
String text)
This method throws an UnsupportedOperationException indicating an
unsupported feature.
|
public static void error(int line,
int col,
String text)
throws EJBQLException
line - line numbercol - column numbertext - error messageEJBQLException - describes the user error.public static void error(String text, Throwable cause) throws EJBQLException
text - error messagecause - the cause of the errorEJBQLException - describes the user error.public static void error(String text) throws EJBQLException
text - error messageEJBQLException - describes the user error.public static void unsupported(int line,
int col,
String text)
throws UnsupportedOperationException
line - line numbercol - column numbertext - messageUnsupportedOperationException - describes the unsupported
feature.public static void fatal(String text) throws EJBQLException
text - error messageEJBQLException - describes the fatal internal error.public static void fatal(String text, Throwable nested) throws EJBQLException
text - error messagenested - the cause of the errorEJBQLException - describes the fatal internal error.public static void log(int level,
String text,
Throwable nested)
throws EJBQLException
level - log leveltext - error messagenested - the cause of the errorEJBQLException - describes the fatal internal error.Copyright © 2017–2020 Eclipse Foundation. All rights reserved.