|
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.lang.RuntimeException | +--javax.jmi.reflect.JmiException | +--com.sap.ip.bi.sdk.exception.BIJmiVerifyException
Exception thrown by generated JMI objects of the BI Java SDK. This could happen within the context of a relational or a multidimensional query, if an exception is detected in the implementation of the operations in the generated code.
Fields inherited from interface com.sap.exception.IBaseException |
audit, defaultLocale |
Constructor Summary | |
BIJmiVerifyException(Locale locale,
com.sap.tc.logging.Category cat,
int severity,
com.sap.tc.logging.Location loc,
String patternKey,
Object[] args,
Throwable rootCause)
Constructs an exception with a localizable text message and the specified root cause of this exception. |
|
BIJmiVerifyException(Locale locale,
String patternKey)
Constructs an exception with a localizable message. |
|
BIJmiVerifyException(Locale locale,
String patternKey,
Object[] args)
Constructs an exception with a localizable message. |
|
BIJmiVerifyException(Locale locale,
String patternKey,
Object[] args,
Throwable cause)
Constructs an exception with a localizable message and a root cause. |
|
BIJmiVerifyException(Locale locale,
String patternKey,
Throwable cause)
Constructs an exception with a localizable message and a root cause. |
|
BIJmiVerifyException(Locale locale,
Throwable rootCause)
Constructs an exception with the specified root cause of this exception. |
Method Summary | |
void |
finallyLocalize()
Finally localizes the LocalizableText message
(if there is one attached).
|
void |
finallyLocalize(Locale loc)
Finally localizes the LocalizableText message
(if there is one attached).
|
void |
finallyLocalize(Locale loc,
TimeZone timeZone)
Finally localizes the LocalizableText message
(if there is one attached).
|
void |
finallyLocalize(TimeZone timeZone)
Finally localizes the LocalizableText message
(if there is one attached).
|
Throwable |
getCause()
Gets the root cause. |
com.sap.localization.LocalizableText |
getLocalizableMessage()
Gets the localizable message. |
String |
getLocalizedMessage()
Gets the localized message. |
String |
getLocalizedMessage(Locale loc)
Gets the localized message. |
String |
getLocalizedMessage(Locale loc,
TimeZone timeZone)
Gets the localized message. |
String |
getLocalizedMessage(TimeZone timeZone)
Gets the localized message. |
com.sap.tc.logging.Category |
getLogCategory()
Gets logging category. |
com.sap.tc.logging.Location |
getLogLocation()
Gets logging location. |
int |
getLogSeverity()
Gets logging severity. |
String |
getMessage()
See getLocalizedMessage() . |
String |
getNestedLocalizedMessage()
Chains localized messages of the nested exceptions. |
String |
getNestedLocalizedMessage(Locale loc)
Chains localized messages of the nested exceptions. |
String |
getNestedLocalizedMessage(Locale loc,
TimeZone timeZone)
Chains localized message of the nested exceptions. |
String |
getNestedLocalizedMessage(TimeZone timeZone)
Chains localized message of the nested exceptions. |
String |
getNestedStackTraceString()
Chains the stack trace information of nested exceptions. |
String |
getStackTraceString()
Gets stack trace information of this exception only. |
String |
getSystemStackTraceString()
Gets the stack information of this exception in respect of the current system environment. |
Throwable |
initCause(Throwable cause)
Initializes the cause of this exception to the specified value. |
void |
log()
Logs the exception message. |
void |
printStackTrace()
Prints this exception and its backtrace to the standard error stream. |
void |
printStackTrace(PrintStream s)
Prints this exception and its backtrace to the specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints the action object and its backtrace to
the specified print writer. |
void |
restoreLogSettings()
Restores log settings to their original values before setLogSettings(Category, int, Location) has been used. |
void |
setLogSettings(com.sap.tc.logging.Category cat,
int severity,
com.sap.tc.logging.Location loc)
Sets logging information. |
Methods inherited from class javax.jmi.reflect.JmiException |
getElementInError, getObjectInError |
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 BIJmiVerifyException(Locale locale, Throwable rootCause)
rootCause
- throwable object that caused this exceptionlocale
- locale with which to localize the messagepublic BIJmiVerifyException(Locale locale, com.sap.tc.logging.Category cat, int severity, com.sap.tc.logging.Location loc, String patternKey, Object[] args, Throwable rootCause)
locale
- locale with which to localize the messagecat
- logging categoryseverity
- logging severityloc
- logging locationpatternKey
- message keyargs
- format argumentsrootCause
- throwable object that caused this exceptionpublic BIJmiVerifyException(Locale locale, String patternKey)
LocalizableTextFormatter
class is used
for the localizable message.locale
- locale with which to localize the messagepatternKey
- message keypublic BIJmiVerifyException(Locale locale, String patternKey, Object[] args)
LocalizableTextFormatter
class is used
for the localizable message.locale
- locale with which to localize the messagepatternKey
- message keyargs
- format argumentspublic BIJmiVerifyException(Locale locale, String patternKey, Throwable cause)
LocalizableTextFormatter
class is used
for the localizable message.locale
- locale with which to localize the messagepatternKey
- message keycause
- root causepublic BIJmiVerifyException(Locale locale, String patternKey, Object[] args, Throwable cause)
LocalizableTextFormatter
class is used
for the localizable message.locale
- locale with which to localize the messagepatternKey
- message keyargs
- format argumentscause
- root causeMethod Detail |
public Throwable initCause(Throwable cause)
This method can be called at most once. This means the cause can be specified only once.
initCause
in interface com.sap.exception.IBaseException
cause
- the cause (which is saved for later retrieval by the
getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)IllegalArgumentException
- if cause
is this
throwable. (A throwable cannot be its own cause.)IllegalStateException
- if the cause was already setpublic Throwable getCause()
getCause
in interface com.sap.exception.IBaseException
public com.sap.localization.LocalizableText getLocalizableMessage()
getLocalizableMessage
in interface com.sap.exception.IBaseException
public String getLocalizedMessage()
The default locale and default time zone are used for localization.
These values have no effect if the finallyLocalize method has already been called.
getLocalizedMessage
in interface com.sap.exception.IBaseException
getLocalizedMessage
in class Throwable
public String getLocalizedMessage(Locale loc)
The specified locale and the default time zone are used for localization. The default locale will be used if the locale parameter is null.
These values have no effect if the finallyLocalize method has been already called.
getLocalizedMessage
in interface com.sap.exception.IBaseException
loc
- localepublic String getLocalizedMessage(TimeZone timeZone)
The specified time zone and the default locale are used for localization. The default time zone will be used, if the time zone parameter is null.
These values have no effect if the finallyLocalize method has been already called.
getLocalizedMessage
in interface com.sap.exception.IBaseException
timeZone
- time zonepublic String getLocalizedMessage(Locale loc, TimeZone timeZone)
The specified time zone and locale are used for localization. The default time zone and the default locale will be used, if the time zone parameter or the locale are null respectively.
These values have no effect if the finallyLocalize method has been already called.
getLocalizedMessage
in interface com.sap.exception.IBaseException
loc
- localetimeZone
- time zonepublic String getNestedLocalizedMessage()
The default locale and the default time zone are used for localization.
These values have no effect if the finallyLocalize method has already been called.
getNestedLocalizedMessage
in interface com.sap.exception.IBaseException
public String getNestedLocalizedMessage(Locale loc)
The specified locale and the default time zone are used for localization. The default locale will be used if the Locale parameter is null.
These values have no effect if the finallyLocalize method has been already called.
getNestedLocalizedMessage
in interface com.sap.exception.IBaseException
loc
- localepublic String getNestedLocalizedMessage(TimeZone timeZone)
The specified time zone and the default locale are used for localization. The default time zone will be used, if the time zone parameter is null.
These values have no effect if the finallyLocalize method has been already called.
If the localized message is not specified, the non-localizable message is returned (if specified).
getNestedLocalizedMessage
in interface com.sap.exception.IBaseException
timeZone
- time zonepublic String getNestedLocalizedMessage(Locale loc, TimeZone timeZone)
The specified time zone and locale are used for localization. The default time zone and the default locale will be used, if the time zone parameter or the locale parameter are null respectively.
These values have no effect if the finallyLocalize method has been already called.
getNestedLocalizedMessage
in interface com.sap.exception.IBaseException
loc
- localetimeZone
- time zonepublic void finallyLocalize()
LocalizableText
message
(if there is one attached).
This means no further localization process can be performed
on that object. If there is a nested exception implementing
IBaseException
, it will be localized recursively.
The default locale and the default time zone are used for localization.
finallyLocalize
in interface com.sap.exception.IBaseException
public void finallyLocalize(Locale loc)
LocalizableText
message
(if there is one attached).
This means no further localization process can be performed
on that object. If there is a nested exception implementing
IBaseException
, it will be localized recursively.
The specified locale and the default time zone are used for localization. If the locale parameter is null, the default locale will be used.
finallyLocalize
in interface com.sap.exception.IBaseException
loc
- localepublic void finallyLocalize(TimeZone timeZone)
LocalizableText
message
(if there is one attached).
This means no further localization process can be performed
on that object. If there is a nested exception implementing
IBaseException
, it will be localized recursively.
The specified time zone and the default locale are used for localization. If time zone parameter is null, the default time zone will be used.
finallyLocalize
in interface com.sap.exception.IBaseException
timeZone
- time zonepublic void finallyLocalize(Locale loc, TimeZone timeZone)
LocalizableText
message
(if there is one attached).
This means no further localization process can be performed
on that object. If there is a nested exception implementing
IBaseException
, it will be localized recursively.
The specified locale and the specified time zone are used for localization. If the time zone parameter or the locale parameter are null, the default values will be used respectively.
finallyLocalize
in interface com.sap.exception.IBaseException
loc
- localetimeZone
- time zonepublic String getSystemStackTraceString()
getSystemStackTraceString
in interface com.sap.exception.IBaseException
public String getStackTraceString()
The stack traces of nested exceptions are not chained.
getStackTraceString
in interface com.sap.exception.IBaseException
public String getNestedStackTraceString()
The caused stack trace is displayed first.
getNestedStackTraceString
in interface com.sap.exception.IBaseException
public void setLogSettings(com.sap.tc.logging.Category cat, int severity, com.sap.tc.logging.Location loc)
setLogSettings
in interface com.sap.exception.IBaseException
cat
- logging categoryseverity
- logging severityloc
- logging locationpublic void log()
log
in interface com.sap.exception.IBaseException
public void printStackTrace()
System.err
.printStackTrace
in interface com.sap.exception.IBaseException
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in interface com.sap.exception.IBaseException
printStackTrace
in class Throwable
s
- PrintStream
to use for outputpublic void printStackTrace(PrintWriter s)
action
object and its backtrace to
the specified print writer.printStackTrace
in interface com.sap.exception.IBaseException
printStackTrace
in class Throwable
s
- PrintWriter
to use for outputpublic String getMessage()
getLocalizedMessage()
.getMessage
in class Throwable
public com.sap.tc.logging.Category getLogCategory()
If no category is specified, null is returned.
public int getLogSeverity()
If no severity is specified,
Severity.NONE
is returned.
public com.sap.tc.logging.Location getLogLocation()
If no location is specified, null is returned.
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 |