com.sap.mdm
Class AbstractMdmException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sap.mdm.AbstractMdmException
All Implemented Interfaces:
IMdmException, Serializable
Direct Known Subclasses:
MdmException

public abstract class AbstractMdmException
extends Exception
implements IMdmException

This class is ancestor of all MDM exceptions.

Since:
7.1 SP08
See Also:
Serialized Form

Constructor Summary
AbstractMdmException()
          Constructs a new exception with null as its default message.
AbstractMdmException(String messageKey)
          Constructs a new exception with the specified message key.
AbstractMdmException(String messageKey, Object messageParam)
          Constructs a new exception with the specified messageKey and messageParam
AbstractMdmException(String messageKey, Object[] messageParams)
          Constructs a new exception with the specified messageKey, messageParams and cause
AbstractMdmException(String messageKey, Object[] messageParams, Throwable cause)
          Constructs a new exception with the specified messageKey and messageParams
AbstractMdmException(String messageKey, Object messageParam, Throwable cause)
          Constructs a new exception with the specified messageKey, messageParam and cause
AbstractMdmException(String messageKey, Throwable cause)
          Constructs a new exception with the specified message key and cause.
AbstractMdmException(Throwable cause)
          Constructs a new exception with the specified cause.
 
Method Summary
 String getLocalizedMessage()
          Returns the localized message of the exception translated using current JVM locale.
 String getLocalizedMessage(Locale locale)
          Returns the localized message of the exception translated using the specified locale
 String getLocalizedMessagesTrace()
          Returns the localized trace of all messages including this message and all cause messages translated using current JVM locale.
 String getLocalizedMessagesTrace(Locale locale)
          Returns the localized trace of all messages including this message and all cause messages translated using the specified locale.
 String getLocalizedSourceMessage()
          Returns the localized initial source message of the exception translated using current JVM locale.
 String getLocalizedSourceMessage(Locale locale)
          Returns the localized initial source message of the exception translated using the specified locale.
 String getMessage()
          Returns the localized message of the exception translated using Locale.ENGLISH
 String getMessageKey()
          Returns message key
 Object[] getMessageParameters()
          Returns the message parameters
 String getMessagesTrace()
          Returns the trace of all messages including this message and all cause messages translated using Locale.ENGLISH.
 String getSourceMessage()
          Returns the initial source message of the exception translated using Locale.ENGLISH
 String[] getStackLocalizedMessages()
          Returns the stack of localized message (list of messages including message of this exception and messages of all cause exceptions) translated using current JVM locale.
 String[] getStackLocalizedMessages(Locale locale)
          Returns the stack of localized message (list of messages including message of this exception and messages of all cause exceptions) translated using the specified locale.
 String[] getStackMessages()
          Returns the stack of localized message (list of messages including message of this exception and messages of all cause exceptions) translated using Locale.ENGLISH.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMdmException

public AbstractMdmException()
Constructs a new exception with null as its default message.


AbstractMdmException

public AbstractMdmException(String messageKey)
Constructs a new exception with the specified message key.

Parameters:
messageKey - the message key

AbstractMdmException

public AbstractMdmException(String messageKey,
                            Throwable cause)
Constructs a new exception with the specified message key and cause.

Parameters:
messageKey - the message key
cause - the cause

AbstractMdmException

public AbstractMdmException(Throwable cause)
Constructs a new exception with the specified cause.

Parameters:
cause - the cause

AbstractMdmException

public AbstractMdmException(String messageKey,
                            Object[] messageParams)
Constructs a new exception with the specified messageKey, messageParams and cause

Parameters:
messageKey - message key
messageParams - in case message key is used this array of objects will be inserted into the formatted message according to the format.

AbstractMdmException

public AbstractMdmException(String messageKey,
                            Object messageParam)
Constructs a new exception with the specified messageKey and messageParam

Parameters:
messageKey - message key
messageParam - in case message key is used this object will be inserted into the formatted message according to the format.

AbstractMdmException

public AbstractMdmException(String messageKey,
                            Object messageParam,
                            Throwable cause)
Constructs a new exception with the specified messageKey, messageParam and cause

Parameters:
messageKey - message key
messageParam - in case message key is used this object will be inserted into the formatted message according to the format.
cause - the cause of the exception

AbstractMdmException

public AbstractMdmException(String messageKey,
                            Object[] messageParams,
                            Throwable cause)
Constructs a new exception with the specified messageKey and messageParams

Parameters:
messageKey - message key
messageParams - in case message key is used this array of objects will be inserted into the formatted message according to the format.
Method Detail

getMessageKey

public String getMessageKey()
Description copied from interface: IMdmException
Returns message key

Specified by:
getMessageKey in interface IMdmException
Returns:
the message key

getMessageParameters

public Object[] getMessageParameters()
Description copied from interface: IMdmException
Returns the message parameters

Specified by:
getMessageParameters in interface IMdmException
Returns:
the message parameters

getLocalizedMessage

public String getLocalizedMessage(Locale locale)
Description copied from interface: IMdmException
Returns the localized message of the exception translated using the specified locale

Specified by:
getLocalizedMessage in interface IMdmException
Parameters:
locale - specifies the desired language of the translation for the message
Returns:
the localized message

getLocalizedMessage

public String getLocalizedMessage()
Description copied from interface: IMdmException
Returns the localized message of the exception translated using current JVM locale.

Specified by:
getLocalizedMessage in interface IMdmException

getMessage

public String getMessage()
Description copied from interface: IMdmException
Returns the localized message of the exception translated using Locale.ENGLISH

Specified by:
getMessage in interface IMdmException

getStackLocalizedMessages

public String[] getStackLocalizedMessages(Locale locale)
Description copied from interface: IMdmException
Returns the stack of localized message (list of messages including message of this exception and messages of all cause exceptions) translated using the specified locale.

Specified by:
getStackLocalizedMessages in interface IMdmException
Parameters:
locale - specifies the desired language of the translation for the messages
Returns:
the stack of the localized messages

getStackLocalizedMessages

public String[] getStackLocalizedMessages()
Description copied from interface: IMdmException
Returns the stack of localized message (list of messages including message of this exception and messages of all cause exceptions) translated using current JVM locale.

Specified by:
getStackLocalizedMessages in interface IMdmException
Returns:
the stack of the localized messages

getStackMessages

public String[] getStackMessages()
Description copied from interface: IMdmException
Returns the stack of localized message (list of messages including message of this exception and messages of all cause exceptions) translated using Locale.ENGLISH.

Specified by:
getStackMessages in interface IMdmException
Returns:
the stack of the localized messages

getLocalizedMessagesTrace

public String getLocalizedMessagesTrace(Locale locale)
Description copied from interface: IMdmException
Returns the localized trace of all messages including this message and all cause messages translated using the specified locale.

Specified by:
getLocalizedMessagesTrace in interface IMdmException
Parameters:
locale - specifies the desired language of the translation for the messages
Returns:
the trace of the localized messages

getLocalizedMessagesTrace

public String getLocalizedMessagesTrace()
Description copied from interface: IMdmException
Returns the localized trace of all messages including this message and all cause messages translated using current JVM locale.

Specified by:
getLocalizedMessagesTrace in interface IMdmException
Returns:
the trace of the localized messages

getMessagesTrace

public String getMessagesTrace()
Description copied from interface: IMdmException
Returns the trace of all messages including this message and all cause messages translated using Locale.ENGLISH.

Specified by:
getMessagesTrace in interface IMdmException
Returns:
the trace of the localized messages

getLocalizedSourceMessage

public String getLocalizedSourceMessage()
Description copied from interface: IMdmException
Returns the localized initial source message of the exception translated using current JVM locale.

Specified by:
getLocalizedSourceMessage in interface IMdmException
Returns:
the localized source message

getLocalizedSourceMessage

public String getLocalizedSourceMessage(Locale locale)
Description copied from interface: IMdmException
Returns the localized initial source message of the exception translated using the specified locale.

Specified by:
getLocalizedSourceMessage in interface IMdmException
Parameters:
locale - specifies the desired language of the translation for the message
Returns:
the localized source message

getSourceMessage

public String getSourceMessage()
Description copied from interface: IMdmException
Returns the initial source message of the exception translated using Locale.ENGLISH

Specified by:
getSourceMessage in interface IMdmException
Returns:
the source message in English

toString

public String toString()


Copyright 2004-2007 by SAP AG. All Rights Reserved.

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.