com.sap.ip.collaboration.gw.api.framework.groupware

Class GroupwareException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sap.ip.collaboration.core.api.util.exception.BaseException
              extended bycom.sap.ip.collaboration.gw.api.framework.groupware.GroupwareException
All Implemented Interfaces:
com.sap.ip.collaboration.core.api.util.exception.IBaseException, Serializable
Direct Known Subclasses:
AddAttachmentFailureException, EFPException, InvalidEmailAddressFormatException, InvalidTransportException, NoResourceFoundException, NoTransportConfiguredException, OperationNotSupportedException, TransportLoadFailureException, UserPasswordException

public class GroupwareException
extends com.sap.ip.collaboration.core.api.util.exception.BaseException

The GroupwareException class acts as the base exception class of the groupware framework.

See Also:
Serialized Form

Field Summary
protected static String LOCALIZATIONFILE
           
 
Fields inherited from class com.sap.ip.collaboration.core.api.util.exception.BaseException
DONT_LOG, LOG
 
Constructor Summary
GroupwareException(String messageKey, boolean log)
           
GroupwareException(Throwable causingThrowable, String messageKey, boolean log)
           
GroupwareException(Throwable aCausingThrowable, String aTextKey, Object[] messageParameters, String resourceBundle, Class callingClass, boolean log)
           
GroupwareException(Throwable aCausingThrowable, String aTextKey, Object[] messageParameters, String resourceBundle, Object callingObject, boolean log)
           
GroupwareException(Throwable aCausingThrowable, String aTextKey, Object[] messageParameters, com.sap.ip.collaboration.core.api.util.text.TextBundle aTextBundle, boolean log)
           
GroupwareException(Throwable aCausingThrowable, String aTextKey, String resourceBundle, Class callingClass, boolean log)
           
GroupwareException(Throwable aCausingThrowable, String aTextKey, String resourceBundle, Object callingObject, boolean log)
           
GroupwareException(Throwable aCausingThrowable, String aTextKey, com.sap.ip.collaboration.core.api.util.text.TextBundle aTextBundle, boolean log)
           
 
Method Summary
static com.sap.ip.collaboration.core.api.util.text.TextBundle getTextBundle(String resourceBundle, Class myClass)
          returns the textbundle for a given class.
static com.sap.ip.collaboration.core.api.util.text.TextBundle getTextBundle(String resourceBundle, Object o)
          gets the locale specific message.
protected  void logMessage(String message)
          logs a message using the standard SAP logger
 
Methods inherited from class com.sap.ip.collaboration.core.api.util.exception.BaseException
getCausingThrowable, getMessage, getMessage, getRootThrowable, getText, isLogged, logException, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCALIZATIONFILE

protected static final String LOCALIZATIONFILE
See Also:
Constant Field Values
Constructor Detail

GroupwareException

public GroupwareException(String messageKey,
                          boolean log)
Parameters:
messageKey - Display Message.
log - boolean parameter to indicate whether logging of this exception is requred or not.

GroupwareException

public GroupwareException(Throwable causingThrowable,
                          String messageKey,
                          boolean log)
Parameters:
causingThrowable - Original Exception object.
messageKey - Exception Description string.
log - boolean parameter to indicate whether logging of this exception is requred or not.

GroupwareException

public GroupwareException(Throwable aCausingThrowable,
                          String aTextKey,
                          com.sap.ip.collaboration.core.api.util.text.TextBundle aTextBundle,
                          boolean log)
Parameters:
aCausingThrowable - Original Exception object.
aTextKey - Exception description string.
aTextBundle - internationalized Text Bundle
log - boolean parameter to indicate whether logging of this exception is requred or not.

GroupwareException

public GroupwareException(Throwable aCausingThrowable,
                          String aTextKey,
                          String resourceBundle,
                          Object callingObject,
                          boolean log)
Parameters:
aCausingThrowable - Original Exception object.
aTextKey - Exception description string.
resourceBundle - internationalized Text Bundle
callingObject - Object using this class
log - boolean parameter to indicate whether logging of this exception is requred or not.

GroupwareException

public GroupwareException(Throwable aCausingThrowable,
                          String aTextKey,
                          String resourceBundle,
                          Class callingClass,
                          boolean log)
Parameters:
aCausingThrowable - Original Exception Object
aTextKey - Exception description string.
resourceBundle - internationalized Text Bundle
callingClass - Class Object of Class where the Exception is being thrown.
log - boolean parameter to indicate whether logging of this exception is requred or not.

GroupwareException

public GroupwareException(Throwable aCausingThrowable,
                          String aTextKey,
                          Object[] messageParameters,
                          com.sap.ip.collaboration.core.api.util.text.TextBundle aTextBundle,
                          boolean log)
Parameters:
aCausingThrowable - Original Exception
aTextKey - Exception description string.
messageParameters - Error Message to be displayed on the screen.
aTextBundle - internationalized Text Bundle
log - boolean parameter to indicate whether logging of this exception is requred or not.

GroupwareException

public GroupwareException(Throwable aCausingThrowable,
                          String aTextKey,
                          Object[] messageParameters,
                          String resourceBundle,
                          Object callingObject,
                          boolean log)
Parameters:
aCausingThrowable - Original Exception object.
aTextKey - Exception description string.
messageParameters - Error Message to be displayed on the screen.
resourceBundle - internationalized Text Bundle
callingObject - Object using this Class.
log - boolean parameter to indicate whether logging of this exception is requred or not.

GroupwareException

public GroupwareException(Throwable aCausingThrowable,
                          String aTextKey,
                          Object[] messageParameters,
                          String resourceBundle,
                          Class callingClass,
                          boolean log)
Parameters:
aCausingThrowable - Original Exception object
aTextKey - Exception description string.
messageParameters - Error Message to be displayed on the screen.
resourceBundle - internationalized Text Bundle
callingClass - Class Instance of the object using this class.
log - boolean parameter to indicate whether logging of this exception is requred or not.
Method Detail

getTextBundle

public static final com.sap.ip.collaboration.core.api.util.text.TextBundle getTextBundle(String resourceBundle,
                                                                                         Object o)
gets the locale specific message.

Parameters:
resourceBundle - internationalized Text Bundle
o - object containing the message.
Returns:
returns locale specific message.

getTextBundle

public static final com.sap.ip.collaboration.core.api.util.text.TextBundle getTextBundle(String resourceBundle,
                                                                                         Class myClass)
returns the textbundle for a given class.

Parameters:
resourceBundle - internationalized Text Bundle
myClass - Class Reference.
Returns:
internationalized Text Bundle

logMessage

protected void logMessage(String message)
logs a message using the standard SAP logger



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.