com.sap.security.core.server.vsi.api.exception
Class VirusInfectionException
com.sap.security.core.server.vsi.api.exception.VSIServiceException
|
+--com.sap.security.core.server.vsi.api.exception.VirusInfectionException
- All Implemented Interfaces:
- ExternalizableException
- public class VirusInfectionException
- extends VSIServiceException
- implements ExternalizableException
Virus scan exceptions thrown by scan/clean functions.
These execeptions are thrown in situations of infections
occured during a scan/clean action.
History:
1.0 Initial Version for SAP NetWeaver 04
1.1 Added a pattern for clean test.
1.5 Enhancements in the native VSI layer
1.6 Dual runtime support (JAVA standalone and J2EE)
- Since:
- 1.0
- Version:
- 1.6, $DateTime: 2007/03/27 12:26:05 $
VirusInfectionException
public VirusInfectionException(java.util.Collection infections,
java.lang.Throwable cause)
- Constructor for VirusInfectionException.
- Parameters:
infections - Virus scan infection arraycause - Throwable error cause
VirusInfectionException
public VirusInfectionException(java.util.Collection infections,
VSIServiceMessage message,
int lastErrorRC,
java.lang.Throwable cause)
- Constructor for VirusInfectionException.
- Parameters:
infections - Virus scan infection arraymessage - VSIMessage Message from VSI text poollastErrorRC - The last occured error return code.cause - Throwable error cause
getInfections
public Infection[] getInfections()
- Returns the infection array.
- Returns:
- The infection array.
getInfectionCollection
public java.util.Collection getInfectionCollection()
- Return the Collection object of Infections
- Returns:
- Collection of Infection objects
getLastErrorRC
public int getLastErrorRC()
- Return the last occured error code.
- Overrides:
getLastErrorRC in class VSIServiceException
- Returns:
- Return code from
VSIConstans - See Also:
VSIConstants
getLastErrorKey
public java.lang.String getLastErrorKey()
- Return the last orrured error code key in
printable form (String).
- Overrides:
getLastErrorKey in class VSIServiceException
- Returns:
- Return code from
VSIConstans as String