com.sap.security.core.server.vsi.api.exception

Class VSIServiceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sap.exception.BaseException
              extended bycom.sap.security.core.server.vsi.api.exception.VSIServiceException
All Implemented Interfaces:
IBaseException, Serializable
Direct Known Subclasses:
VirusInfectionException, VirusScanException

public class VSIServiceException
extends BaseException

Root exception for all exceptions of the VSI Service. Where necessary, further refinements are possible.

History:

     1.0      Initial Version for SAP NetWeaver 04
     1.5      Enhancements in the native VSI layer
     1.6      Dual runtime support (JAVA standalone and J2EE)
	

Since:
1.0
See Also:
Serialized Form

Field Summary
static String EXPLANATION_FINALLY_EXCEPTION
           
 
Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
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.
 
Method Summary
 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 occured 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.
 
Methods inherited from class com.sap.exception.BaseException
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
 
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

EXPLANATION_FINALLY_EXCEPTION

public static final String EXPLANATION_FINALLY_EXCEPTION
See Also:
Constant Field Values
Constructor Detail

VSIServiceException

public VSIServiceException(Location location,
                           VSIServiceMessage message,
                           Throwable rootCause)
Constructor for VSIServiceException.

See Also:
VSIServiceException#VSIServiceException(VSIMessage, Throwable)

VSIServiceException

public VSIServiceException(Throwable wrappedThrowable)
Constructor for VSIServiceException.

Parameters:
wrappedThrowable - Throwable error cause

VSIServiceException

public VSIServiceException(VSIServiceMessage message,
                           Throwable cause)
Constructor for VSIServiceException.

Parameters:
message - VSIMessage Message from VSI text pool
cause - Throwable error cause

VSIServiceException

public VSIServiceException(VSIServiceMessage message,
                           int lastErrorRC,
                           Throwable cause)
Constructor for VSIServiceException.

Parameters:
message - VSIMessage Message from VSI text pool
lastErrorRC - The last occured error return code.
cause - Throwable error cause
Method Detail

getLastErrorRC

public int getLastErrorRC()
Return the last occured error code.

Returns:
Return code from VSIConstans
See Also:
VSIConstants

getLastErrorKey

public String getLastErrorKey()
Return the last orrured error code key in printable form (String).

Returns:
Return code from VSIConstans as String

getIDMessage

public VSIServiceMessage getIDMessage()
Return the outermost available VSIMessage object in the exception.

Returns:
An VSIMessage as described above.

isExternalizable

public boolean isExternalizable()
See Also:
ExternalizableException

getMessage

public String getMessage()
This method is not implemented in the SAP Exception Framework, but must be present for compatibility with Throwable.

Overrides:
getMessage in class BaseException
See Also:
BaseException.getLocalizedMessage()

logIDException

public String logIDException(int severity,
                             Category category,
                             Location location,
                             String sublocation)
Log this instance of the VSIServiceException. This includes the following steps: This method should not be used to log every exception that appears within arbitrary methods. It should only be used to log exceptions at the top-most level of processing, i.e. in locations that form an interface of the functionality to another system or a human user. Examples: Servlets, LoginModules, ... Non-Examples: API methods, private methods, ...

Parameters:
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.
Returns:
A string that contains either the message text of the exception This text is intended to be given to an external system.


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.