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 $

Fields inherited from class com.sap.security.core.server.vsi.api.exception.VSIServiceException
EXPLANATION_FINALLY_EXCEPTION
 
Constructor Summary
VirusInfectionException(java.util.Collection infections, java.lang.Throwable cause)
          Constructor for VirusInfectionException.
VirusInfectionException(java.util.Collection infections, VSIServiceMessage message, int lastErrorRC, java.lang.Throwable cause)
          Constructor for VirusInfectionException.
 
Method Summary
 java.util.Collection getInfectionCollection()
          Return the Collection object of Infections
 Infection[] getInfections()
          Returns the infection array.
 java.lang.String getLastErrorKey()
          Return the last orrured error code key in printable form (String).
 int getLastErrorRC()
          Return the last occured error code.
 
Methods inherited from class com.sap.security.core.server.vsi.api.exception.VSIServiceException
getIDMessage, getMessage, isExternalizable, logIDException
 

Constructor Detail

VirusInfectionException

public VirusInfectionException(java.util.Collection infections,
                               java.lang.Throwable cause)
Constructor for VirusInfectionException.
Parameters:
infections - Virus scan infection array
cause - 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 array
message - VSIMessage Message from VSI text pool
lastErrorRC - The last occured error return code.
cause - Throwable error cause
Method Detail

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