|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Common interface for BaseException and
BaseRuntimeException.
Objects of type IBaseException can optionally hold a
reference to another Throwable object (root cause) and
a language independent message object of type
LocalizableText.
LocalizableText,
BaseException,
BaseRuntimeException| Field Summary | |
static Category |
audit
Category for logging traces. |
static Locale |
defaultLocale
Default Locale. |
| 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()
Getter method for root cause. |
LocalizableText |
getLocalizableMessage()
Getter method for localizable message. |
String |
getLocalizedMessage()
Gets localized message. |
String |
getLocalizedMessage(Locale loc)
Gets localized message. |
String |
getLocalizedMessage(Locale loc,
TimeZone timeZone)
Gets localized message. |
String |
getLocalizedMessage(TimeZone timeZone)
Gets localized message. |
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()
Deprecated. Instead of this method it should be used some suitable method from Logging API. The method is left for backward compatibility. |
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 |
setLogSettings(Category cat,
int severity,
Location loc)
Deprecated. Category and severity must not be used inside of Exception API. The method is left for backward compatibility. |
| Field Detail |
public static final Category audit
public static final Locale defaultLocale
| Method Detail |
public Throwable initCause(Throwable cause)
This method can be called at most once. That means the cause can be specified only once.
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()
public LocalizableText getLocalizableMessage()
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.
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.
loc - locale
public 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.
timeZone - time zone
public 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.
loc - localetimeZone - time zone
public 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.
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.
loc - locale
public 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).
timeZone - time zone
public 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.
loc - localetimeZone - time zone
public void finallyLocalize()
LocalizableText message
(if there is one attached).
That 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.
public void finallyLocalize(Locale loc)
LocalizableText message
(if there is one attached).
That 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.
loc - localepublic void finallyLocalize(TimeZone timeZone)
LocalizableText message
(if there is one attached).
That 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.
timeZone - time zone
public void finallyLocalize(Locale loc,
TimeZone timeZone)
LocalizableText message
(if there is one attached).
That 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.
loc - localetimeZone - time zonepublic String getSystemStackTraceString()
public String getStackTraceString()
The stack traces of nested exceptions are not chained.
public String getNestedStackTraceString()
The caused stack trace is displayed first.
public void printStackTrace()
System.err.
public void printStackTrace(PrintStream s)
s - PrintStream to use for outputpublic void printStackTrace(PrintWriter s)
action object and its backtrace to
the specified print writer.
s - PrintWriter to use for output
public void setLogSettings(Category cat,
int severity,
Location loc)
cat - logging categoryseverity - logging severityloc - logging locationpublic void log()
setLogSettings(Category, int, Location)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||