public class VSIServiceException
extends com.sap.exception.BaseException
History:
1.0 Initial Version for SAP NetWeaver 1.1 Added a pattern for clean test. 1.5 Enhancements in the native VSI layer 1.6 Dual runtime support (JAVA stand-alone and J2EE) 1.7 Added scanStream methods and support ActiveContent scan 1.8 Added getContentInfo and support for Content filtering 1.9 Minor bug fixes and new vendor parameters
Modifier and Type | Field and Description |
---|---|
static String |
EXPLANATION_FINALLY_EXCEPTION |
Constructor and Description |
---|
VSIServiceException(Location location,
VSIServiceMessage message,
Throwable rootCause)
Constructor for VSIServiceException.
|
VSIServiceException(Throwable wrappedThrowable)
Constructor for VSIServiceException.
|
VSIServiceException(VSIServiceMessage message,
int lastErrorRC,
Throwable cause)
Constructor for VSIServiceException.
|
VSIServiceException(VSIServiceMessage message,
Throwable cause)
Constructor for VSIServiceException.
|
Modifier and Type | Method and Description |
---|---|
VSIServiceMessage |
getIDMessage()
Return the outermost available
VSIMessage object in the
exception. |
String |
getLastErrorKey()
Return the last orrured error code key in
printable form (String).
|
int |
getLastErrorRC()
Return the last occurred error code.
|
String |
getMessage()
This method is not implemented in the SAP Exception Framework, but must
be present for compatibility with
Throwable . |
boolean |
isExternalizable() |
String |
logIDException(int severity,
Category category,
Location location,
String sublocation)
Log this instance of the
VSIServiceException . |
finallyLocalize, finallyLocalize, finallyLocalize, finallyLocalize, getCause, getLocalizableMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLogCategory, getLogLocation, getLogSeverity, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedStackTraceString, getStackTraceString, getSystemStackTraceString, initCause, log, printStackTrace, printStackTrace, printStackTrace, restoreLogSettings, setLogSettings, trace, trace
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, setStackTrace, toString
public static final String EXPLANATION_FINALLY_EXCEPTION
public VSIServiceException(Location location, VSIServiceMessage message, Throwable rootCause)
location
- the locationmessage
- VSI service messagesrootCause
- the cause of the exceptionVSIServiceException(Location, VSIServiceMessage, Throwable)
public VSIServiceException(Throwable wrappedThrowable)
wrappedThrowable
- Throwable
error causepublic VSIServiceException(VSIServiceMessage message, Throwable cause)
message
- VSIMessage
Message from VSI text poolcause
- Throwable
error causepublic VSIServiceException(VSIServiceMessage message, int lastErrorRC, Throwable cause)
message
- VSIMessage
Message from VSI text poollastErrorRC
- The last occurred error return code.cause
- Throwable
error causepublic int getLastErrorRC()
VSIConstans
VSIConstants
public String getLastErrorKey()
VSIConstans
as Stringpublic VSIServiceMessage getIDMessage()
VSIMessage
object in the
exception.VSIMessage
as described above.public boolean isExternalizable()
true
if this exception is externalizable itselfExternalizableException
public String getMessage()
Throwable
.getMessage
in class com.sap.exception.BaseException
public String logIDException(int severity, Category category, Location location, String sublocation)
VSIServiceException
.
This includes the following steps:
severity
- One of the constants in class Severity
category
- The Category
under which the exception should be
logged. This refers to the exception message text (nested,
non-localized).location
- The location for the exception audit. Using this location, the
stack trace of the exception will be logged, using the
audit category as relative (currently "/System/Audit").sublocation
- The method name for the location.Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] ENGFACADE
|
[sap.com] tc/bl/vsi/api
|
api
|
BC-JAS-SEC
|
[sap.com] J2EE-APPS
|
[sap.com]
|
-
|
BC-SEC-VIR
|
[sap.com] J2EE-APPS
|
[sap.com]
|
default
|
BC-SEC-VIR
|
Copyright 2018 SAP AG Complete Copyright Notice