|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
com.sap.exception.io.SAPIOException
Wrapper class for IOException.
| Field Summary | |
static String |
DIRECTORY_PATH
|
static String |
FILE_EMPTY
|
static String |
FILE_NOT_READABLE
|
static String |
FILE_NOT_WRITABLE
|
static String |
FILE_PATH
|
| Fields inherited from interface com.sap.exception.IBaseException |
audit, defaultLocale |
| Constructor Summary | |
protected |
SAPIOException(Category cat,
int severity,
Location loc,
ResourceAccessor resAccessor,
String patternKey,
Object[] args,
Throwable rootCause)
Deprecated. Category and severity must not be used inside of Exception API. The method is left for backward compatibility. |
|
SAPIOException(Category cat,
int severity,
Location loc,
String patternKey,
Object[] args,
Throwable rootCause)
Deprecated. Category and severity must not be used inside of Exception API. The method is left for backward compatibility. |
protected |
SAPIOException(Location loc,
ResourceAccessor resAccessor,
String patternKey,
Object[] args,
Throwable cause)
Constructs an exception with a localizable message and a root cause. |
|
SAPIOException(Location loc,
String patternKey)
Constructs an exception with a localizable message. |
|
SAPIOException(Location loc,
String patternKey,
Object[] args)
Constructs an exception with a localizable message. |
|
SAPIOException(Location loc,
String patternKey,
Object[] args,
Throwable cause)
Constructs an exception with a localizable message and a root cause. |
|
SAPIOException(Location loc,
String patternKey,
Throwable cause)
Constructs an exception with a localizable message and a root cause. |
|
SAPIOException(Location loc,
Throwable rootCause)
Constructs an exception with the specified root cause, which caused this exception. |
protected |
SAPIOException(ResourceAccessor resAccessor,
String patternKey,
Object[] args,
Throwable cause)
Deprecated. Every constructor must have an location as input parameter to make possible automatic exception tracing. The method is left for backward compatibility. |
|
SAPIOException(String patternKey)
Deprecated. Every constructor must have an location as input parameter to make possible automatic exception tracing. The method is left for backward compatibility. |
|
SAPIOException(String patternKey,
Object[] args)
Deprecated. Every constructor must have an location as input parameter to make possible automatic exception tracing. The method is left for backward compatibility. |
|
SAPIOException(String patternKey,
Object[] args,
Throwable cause)
Deprecated. Every constructor must have an location as input parameter to make possible automatic exception tracing. The method is left for backward compatibility. |
|
SAPIOException(String patternKey,
Throwable cause)
Deprecated. Every constructor must have an location as input parameter to make possible automatic exception tracing. The method is left for backward compatibility. |
|
SAPIOException(Throwable rootCause)
Deprecated. Every constructor must have an location as input parameter to make possible automatic exception tracing. The method is left for backward compatibility. |
| 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. |
Category |
getLogCategory()
Getter method for logging category. |
Location |
getLogLocation()
Getter method for logging location. |
int |
getLogSeverity()
Getter method for logging severity. |
String |
getMessage()
|
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 method setLogSettings(Category, int, Location) has been used. |
void |
setLogSettings(Category cat,
int severity,
Location loc)
Setter method for logging information. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String DIRECTORY_PATH
public static final String FILE_PATH
public static final String FILE_NOT_READABLE
public static final String FILE_NOT_WRITABLE
public static final String FILE_EMPTY
| Constructor Detail |
public SAPIOException(Throwable rootCause)
rootCause - throwable object which caused this exception
public SAPIOException(Location loc,
Throwable rootCause)
loc - logging location which will be used in case of automatic tracingrootCause - throwable object which caused this exception
public SAPIOException(Category cat,
int severity,
Location loc,
String patternKey,
Object[] args,
Throwable rootCause)
cat - logging categoryseverity - logging severityloc - logging locationpatternKey - message keyargs - format argumentsrootCause - throwable object, which caused this exception
protected SAPIOException(Category cat,
int severity,
Location loc,
ResourceAccessor resAccessor,
String patternKey,
Object[] args,
Throwable rootCause)
cat - logging categoryseverity - logging severityloc - logging locationresAccessor - resource accessorpatternKey - message keyargs - format argumentsrootCause - throwable object, which caused this exceptionpublic SAPIOException(String patternKey)
LocalizableTextFormatter class is used
for the localizable message.
patternKey - message key
public SAPIOException(Location loc,
String patternKey)
LocalizableTextFormatter class is used
for the localizable message.
loc - logging location which will be used in case of automatic tracingpatternKey -
public SAPIOException(String patternKey,
Object[] args)
LocalizableTextFormatter class is used
for the localizable message.
patternKey - message keyargs - format arguments
public SAPIOException(Location loc,
String patternKey,
Object[] args)
LocalizableTextFormatter class is used
for the localizable message.
loc - logging location which will be used in case of automatic tracingpatternKey - message keyargs - format arguments
public SAPIOException(String patternKey,
Throwable cause)
LocalizableTextFormatter class is used
for the localizable message.
patternKey - message keycause - root cause
public SAPIOException(Location loc,
String patternKey,
Throwable cause)
LocalizableTextFormatter class is used
for the localizable message.
loc - logging location which will be used in case of automatic tracingpatternKey - message keycause - root cause
public SAPIOException(String patternKey,
Object[] args,
Throwable cause)
LocalizableTextFormatter class is used
for the localizable message.
patternKey - message keyargs - format argumentscause - root cause
public SAPIOException(Location loc,
String patternKey,
Object[] args,
Throwable cause)
LocalizableTextFormatter class is used
for the localizable message.
loc - logging location which will be used in case of automatic tracingpatternKey - message keyargs - format argumentscause - root cause
protected SAPIOException(ResourceAccessor resAccessor,
String patternKey,
Object[] args,
Throwable cause)
LocalizableTextFormatter class is used
for the localizable message.
resAccessor - resource accessorpatternKey - message keyargs - format argumentscause - root cause
protected SAPIOException(Location loc,
ResourceAccessor resAccessor,
String patternKey,
Object[] args,
Throwable cause)
LocalizableTextFormatter class is used
for the localizable message.
loc - logging location which will be used in case of automatic tracingresAccessor - resource accessorpatternKey - message keyargs - format argumentscause - root cause| Method Detail |
public Throwable initCause(Throwable cause)
IBaseExceptionThis method can be called at most once. That means the cause can be specified only once.
initCause in interface IBaseExceptionIBaseException.initCause(Throwable)public Throwable getCause()
IBaseException
getCause in interface IBaseExceptionIBaseException.getCause()public String getLocalizedMessage()
IBaseExceptionThe 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 IBaseExceptionIBaseException.getLocalizedMessage()public LocalizableText getLocalizableMessage()
IBaseException
getLocalizableMessage in interface IBaseExceptionIBaseException.getLocalizableMessage()public String getLocalizedMessage(Locale loc)
IBaseExceptionThe 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 IBaseExceptionloc - locale
IBaseException.getLocalizedMessage(Locale)public String getLocalizedMessage(TimeZone timeZone)
IBaseExceptionThe 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 IBaseExceptiontimeZone - time zone
IBaseException.getLocalizedMessage(TimeZone)
public String getLocalizedMessage(Locale loc,
TimeZone timeZone)
IBaseExceptionThe 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 IBaseExceptionloc - localetimeZone - time zone
IBaseException.getLocalizedMessage(Locale, TimeZone)public String getNestedLocalizedMessage()
IBaseExceptionThe 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 IBaseExceptionIBaseException.getNestedLocalizedMessage()public String getNestedLocalizedMessage(Locale loc)
IBaseExceptionThe 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 IBaseExceptionloc - locale
IBaseException.getNestedLocalizedMessage(Locale)public String getNestedLocalizedMessage(TimeZone timeZone)
IBaseExceptionThe 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 IBaseExceptiontimeZone - time zone
IBaseException.getNestedLocalizedMessage(TimeZone)
public String getNestedLocalizedMessage(Locale loc,
TimeZone timeZone)
IBaseExceptionThe 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 IBaseExceptionloc - localetimeZone - time zone
IBaseException.getNestedLocalizedMessage(Locale, TimeZone)public void finallyLocalize()
IBaseExceptionLocalizableText 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.
finallyLocalize in interface IBaseExceptionIBaseException.finallyLocalize()public void finallyLocalize(Locale loc)
IBaseExceptionLocalizableText 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.
finallyLocalize in interface IBaseExceptionloc - localeIBaseException.finallyLocalize(Locale)public void finallyLocalize(TimeZone timeZone)
IBaseExceptionLocalizableText 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.
finallyLocalize in interface IBaseExceptiontimeZone - time zoneIBaseException.finallyLocalize(TimeZone)
public void finallyLocalize(Locale loc,
TimeZone timeZone)
IBaseExceptionLocalizableText 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.
finallyLocalize in interface IBaseExceptionloc - localetimeZone - time zoneIBaseException.finallyLocalize(Locale, TimeZone)public String getSystemStackTraceString()
getSystemStackTraceString in interface IBaseExceptionIBaseException.getSystemStackTraceString()public String getStackTraceString()
IBaseExceptionThe stack traces of nested exceptions are not chained.
getStackTraceString in interface IBaseExceptionIBaseException.getStackTraceString()public String getNestedStackTraceString()
IBaseExceptionThe caused stack trace is displayed first.
getNestedStackTraceString in interface IBaseExceptionIBaseException.getNestedStackTraceString()
public void setLogSettings(Category cat,
int severity,
Location loc)
IBaseException
setLogSettings in interface IBaseExceptioncat - logging categoryseverity - logging severityloc - logging locationIBaseException.setLogSettings(Category, int, Location)public void log()
IBaseException
log in interface IBaseExceptionIBaseException.log()public void printStackTrace()
IBaseExceptionSystem.err.
printStackTrace in interface IBaseExceptionIBaseException.printStackTrace()public void printStackTrace(PrintStream s)
IBaseException
printStackTrace in interface IBaseExceptionIBaseException.printStackTrace(PrintStream)public void printStackTrace(PrintWriter s)
IBaseExceptionaction object and its backtrace to
the specified print writer.
printStackTrace in interface IBaseExceptionIBaseException.printStackTrace(PrintWriter)public String getMessage()
getLocalizedMessage()public Category getLogCategory()
If no category is specified, null is returned.
public int getLogSeverity()
If no severity is specified,
Severity.NONE is returned.
public Location getLogLocation()
If no location is specified, null is returned.
public void restoreLogSettings()
setLogSettings(Category, int, Location)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||