|
SAP BI Java SDK | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.sql.SQLException | +--java.sql.SQLWarning | +--com.sap.ip.bi.sdk.exception.BISQLWarning
Exception providing information on errors occurring while
interacting with BI Java SDK relational connectors. These
can be forwarded JDBC
warnings
or wrapped exceptions raised by non-JDBC connectors.
Like SQLException
, BISQLWarning provides
some or all of the following information:
Fields inherited from interface com.sap.exception.IBaseException |
audit, defaultLocale |
Constructor Summary | |
BISQLWarning(Locale locale)
Constructs a BISQLWarning object with no parameter. |
|
BISQLWarning(Locale locale,
com.sap.tc.logging.Category category,
int severity,
com.sap.tc.logging.Location location,
String messageId,
Object[] args,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
com.sap.tc.logging.Category category,
int severity,
com.sap.tc.logging.Location location,
String messageId,
String SQLState,
int vendorCode,
Object[] args,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
com.sap.tc.logging.Category category,
int severity,
com.sap.tc.logging.Location location,
String messageId,
String SQLState,
int vendorCode,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
com.sap.tc.logging.Category category,
int severity,
com.sap.tc.logging.Location location,
String messageId,
String SQLState,
Object[] args,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
com.sap.tc.logging.Category category,
int severity,
com.sap.tc.logging.Location location,
String messageId,
String SQLState,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
com.sap.tc.logging.Category category,
int severity,
com.sap.tc.logging.Location location,
String messageId,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
Object[] args)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
Object[] args,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
String SQLState)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
String SQLState,
int vendorCode)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
String SQLState,
int vendorCode,
Object[] args)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
String SQLState,
int vendorCode,
Object[] args,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
String SQLState,
int vendorCode,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
String SQLState,
Object[] args)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
String SQLState,
Object[] args,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
String SQLState,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
String messageId,
Throwable cause)
Constructs a BISQLWarning instance. |
|
BISQLWarning(Locale locale,
Throwable cause)
Constructs a BISQLWarning instance. |
Method Summary | |
void |
finallyLocalize()
Finally localizes the LocalizableText message
(if there is one attached). |
void |
finallyLocalize(Locale arg0)
Finally localizes the LocalizableText message
(if there is one attached) with the specified locale information. |
void |
finallyLocalize(Locale loc,
TimeZone timeZone)
Finally localizes the LocalizableText message (if there is one attached). |
void |
finallyLocalize(TimeZone arg0)
Finally localizes the LocalizableText message
(if there is one attached) with the specified time zone information. |
Throwable |
getCause()
Returns the cause of the problem. |
com.sap.localization.LocalizableText |
getLocalizableMessage()
Gets the LocalizableText class from BaseExceptionInfo instance. |
String |
getLocalizedMessage()
Gets the localized message from BaseExceptionInfo instance. |
String |
getLocalizedMessage(Locale arg0)
Returns the localized message with a locale as input. |
String |
getLocalizedMessage(Locale loc,
TimeZone timeZone)
Gets the localized message according to BaseExceptionInfo instance with locale and time zone information. |
String |
getLocalizedMessage(TimeZone arg0)
Returns the localized message string with a time zone restriction. |
com.sap.tc.logging.Location |
getLogLocation()
Gets logging location. |
int |
getLogSeverity()
Gets logging severity. |
String |
getMessage()
Returns the exception message. |
String |
getNestedLocalizedMessage()
Returns the nested localized message. |
String |
getNestedLocalizedMessage(Locale arg0)
Returns nested localized message with locale information. |
String |
getNestedLocalizedMessage(Locale arg0,
TimeZone arg1)
Returns the nested localized message with locale and time zone information. |
String |
getNestedLocalizedMessage(TimeZone arg0)
Returns the nested localized message with time zone information. |
String |
getNestedStackTraceString()
Gets the nested stack trace string from BaseExceptionInfo instance. |
String |
getStackTraceString()
Gets stack trace information of this exception only. |
String |
getSystemStackTraceString()
Gets the stack information of this exception with respect to the current system environment. |
Throwable |
initCause(Throwable arg0)
Initializes the cause of this exception to the specified value. |
void |
log()
Logs the exception message. |
void |
printStackTrace()
Prints this Throwable and its backtrace to the standard error stream. |
void |
printStackTrace(PrintStream printStream)
Prints this Throwable and its backtrace to the specified print stream. |
void |
printStackTrace(PrintWriter printWriter)
Prints this Throwable and its backtrace to the specified print writer. |
void |
restoreLogSettings()
Restores log settings to their original value before setLogSettings(Category, int, Location)
has been used. |
void |
setLogSettings(com.sap.tc.logging.Category arg0,
int arg1,
com.sap.tc.logging.Location arg2)
Sets the log settings with the specified category and location information. |
Methods inherited from class java.sql.SQLWarning |
getNextWarning, setNextWarning |
Methods inherited from class java.sql.SQLException |
getErrorCode, getNextException, getSQLState, setNextException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BISQLWarning(Locale locale)
BISQLWarning
object with no parameter.locale
- Locale for messagepublic BISQLWarning(Locale locale, String messageId)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messagepublic BISQLWarning(Locale locale, String messageId, String SQLState)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageSQLState
- XOPEN SQLState stringpublic BISQLWarning(Locale locale, String messageId, String SQLState, int vendorCode)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageSQLState
- XOPEN SQLState stringvendorCode
- vendor-specific error codepublic BISQLWarning(Locale locale, String messageId, Object[] args)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageargs
- arguments of the formatted messagepublic BISQLWarning(Locale locale, String messageId, String SQLState, Object[] args)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageSQLState
- XOPEN SQLState stringargs
- arguments of the formatted messagepublic BISQLWarning(Locale locale, String messageId, String SQLState, int vendorCode, Object[] args)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageSQLState
- XOPEN SQLState stringvendorCode
- vendor-specific error codeargs
- arguments of the formatted messagepublic BISQLWarning(Locale locale, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagecause
- the nested exceptionpublic BISQLWarning(Locale locale, String messageId, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messagecause
- the nested exceptionpublic BISQLWarning(Locale locale, String messageId, String SQLState, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageSQLState
- XOPEN SQLState stringcause
- the nested exceptionpublic BISQLWarning(Locale locale, String messageId, String SQLState, int vendorCode, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageSQLState
- XOPEN SQLState stringvendorCode
- vendor-specific error codecause
- the nested exceptionpublic BISQLWarning(Locale locale, String messageId, Object[] args, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageargs
- arguments of the formatted messagecause
- the nested exceptionpublic BISQLWarning(Locale locale, String messageId, String SQLState, Object[] args, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageSQLState
- XOPEN SQLState stringargs
- arguments of the formatted messagecause
- the nested exceptionpublic BISQLWarning(Locale locale, String messageId, String SQLState, int vendorCode, Object[] args, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagemessageId
- unique identifier for messageSQLState
- XOPEN SQLState stringvendorCode
- vendor-specific error codeargs
- arguments of the formatted messagecause
- the nested exceptionpublic BISQLWarning(Locale locale, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, String messageId, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagecategory
- category of the exceptionseverity
- severity of the exceptionlocation
- the location where this exception is thrownmessageId
- unique ID of a given messagecause
- the nested exceptionpublic BISQLWarning(Locale locale, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, String messageId, String SQLState, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagecategory
- category of the exceptionseverity
- severity of the exceptionlocation
- the location where this exception is thrownmessageId
- unique ID of a given messageSQLState
- XOPEN SQLState stringcause
- the nested exceptionpublic BISQLWarning(Locale locale, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, String messageId, String SQLState, int vendorCode, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagecategory
- category of the exceptionseverity
- severity of the exceptionlocation
- the location where this exception is thrownmessageId
- unique ID of a given messageSQLState
- XOPEN SQLState stringvendorCode
- vendor-specific error codecause
- the nested exceptionpublic BISQLWarning(Locale locale, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, String messageId, Object[] args, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagecategory
- category of the exceptionseverity
- severity of the exceptionlocation
- the location where this exception is thrownmessageId
- unique ID of a given messageargs
- arguments of the formatted messagecause
- the nested exceptionpublic BISQLWarning(Locale locale, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, String messageId, String SQLState, Object[] args, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagecategory
- category of the exceptionseverity
- severity of the exceptionlocation
- the location where this exception is thrownmessageId
- unique ID of a given messageSQLState
- XOPEN SQLState stringargs
- arguments of the formatted messagecause
- the nested exceptionpublic BISQLWarning(Locale locale, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, String messageId, String SQLState, int vendorCode, Object[] args, Throwable cause)
BISQLWarning
instance.locale
- Locale for messagecategory
- category of the exceptionseverity
- severity of the exceptionlocation
- the location where this exception is thrownmessageId
- unique ID of a given messageSQLState
- XOPEN SQLState stringvendorCode
- vendor-specific error codeargs
- arguments of the formatted messagecause
- the nested exceptionMethod Detail |
public String getLocalizedMessage()
getLocalizedMessage
in interface com.sap.exception.IBaseException
getLocalizedMessage
in class Throwable
Throwable.getLocalizedMessage()
public com.sap.localization.LocalizableText getLocalizableMessage()
LocalizableText
class from BaseExceptionInfo instance.getLocalizableMessage
in interface com.sap.exception.IBaseException
public String getLocalizedMessage(Locale loc, TimeZone timeZone)
getLocalizedMessage
in interface com.sap.exception.IBaseException
public void finallyLocalize(Locale loc, TimeZone timeZone)
LocalizableText
message (if there is one attached).finallyLocalize
in interface com.sap.exception.IBaseException
public String getNestedStackTraceString()
BaseExceptionInfo
instance.getNestedStackTraceString
in interface com.sap.exception.IBaseException
public String getSystemStackTraceString()
getSystemStackTraceString
in interface com.sap.exception.IBaseException
public Throwable initCause(Throwable arg0)
initCause
in interface com.sap.exception.IBaseException
public Throwable getCause()
getCause
in interface com.sap.exception.IBaseException
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage(Locale arg0)
getLocalizedMessage
in interface com.sap.exception.IBaseException
public String getLocalizedMessage(TimeZone arg0)
getLocalizedMessage
in interface com.sap.exception.IBaseException
public String getNestedLocalizedMessage()
getNestedLocalizedMessage
in interface com.sap.exception.IBaseException
public String getNestedLocalizedMessage(Locale arg0)
getNestedLocalizedMessage
in interface com.sap.exception.IBaseException
public String getNestedLocalizedMessage(TimeZone arg0)
getNestedLocalizedMessage
in interface com.sap.exception.IBaseException
public String getNestedLocalizedMessage(Locale arg0, TimeZone arg1)
getNestedLocalizedMessage
in interface com.sap.exception.IBaseException
public void finallyLocalize()
LocalizableText
message
(if there is one attached).finallyLocalize
in interface com.sap.exception.IBaseException
public void finallyLocalize(Locale arg0)
LocalizableText
message
(if there is one attached) with the specified locale information.finallyLocalize
in interface com.sap.exception.IBaseException
public void finallyLocalize(TimeZone arg0)
LocalizableText
message
(if there is one attached) with the specified time zone information.finallyLocalize
in interface com.sap.exception.IBaseException
public String getStackTraceString()
getStackTraceString
in interface com.sap.exception.IBaseException
public void setLogSettings(com.sap.tc.logging.Category arg0, int arg1, com.sap.tc.logging.Location arg2)
setLogSettings
in interface com.sap.exception.IBaseException
public void log()
log
in interface com.sap.exception.IBaseException
public void printStackTrace()
printStackTrace
in interface com.sap.exception.IBaseException
printStackTrace
in class Throwable
IBaseException.printStackTrace()
public void printStackTrace(PrintStream printStream)
printStackTrace
in interface com.sap.exception.IBaseException
printStackTrace
in class Throwable
IBaseException.printStackTrace(PrintStream)
public void printStackTrace(PrintWriter printWriter)
printStackTrace
in interface com.sap.exception.IBaseException
printStackTrace
in class Throwable
IBaseException.printStackTrace(PrintWriter)
public int getLogSeverity()
Severity.NONE
is returned.public com.sap.tc.logging.Location getLogLocation()
public void restoreLogSettings()
setLogSettings(Category, int, Location)
has been used.setLogSettings(Category, int, Location)
|
SAP BI Java SDK | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |