com.sap.mdm
Class MdmIllegalStateException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalStateException
                  extended bycom.sap.mdm.MdmIllegalStateException
All Implemented Interfaces:
Serializable

public class MdmIllegalStateException
extends IllegalStateException

This class is MDM version of IllegalStateException class.

See Also:
Serialized Form

Constructor Summary
MdmIllegalStateException()
          Constructs a new exception with null as its default message.
MdmIllegalStateException(String messageKey)
          Constructs a new exception with the specified message key.
MdmIllegalStateException(String messageKey, Object messageParam)
          Constructs a new exception with the specified messageKey and messageParam
MdmIllegalStateException(String messageKey, Object[] messageParams)
          Constructs a new exception with the specified messageKey, messageParams and cause
 
Method Summary
 String getLocalizedMessage()
          Returns localized message of the exception translated using current JVM locale.
 String getLocalizedMessage(Locale locale)
          Returns localized message of the exception translated using the specified locale
 String getLocalizedMessagesTrace()
          Returns localized trace of all messages including this message and all cause messages translated using current JVM locale.
 String getLocalizedMessagesTrace(Locale locale)
          Returns localized trace of all messages including this message and all cause messages translated using the specified locale.
 String getLocalizedSourceMessage()
          Returns localized initial source message of the exception translated using current JVM locale.
 String getLocalizedSourceMessage(Locale locale)
          Returns localized initial source message of the exception translated using the specified locale.
 String getMessage()
          Returns localized message of the exception translated using Locale.ENGLISH
 String getMessageKey()
          Returns message key
 Object[] getMessageParameters()
          Returns message parameters
 String getMessagesTrace()
          Returns trace of all messages including this message and all cause messages translated using Locale.ENGLISH.
 String getSourceMessage()
          Returns initial source message of the exception translated using Locale.ENGLISH
 String[] getStackLocalizedMessages()
          Returns 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 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 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

MdmIllegalStateException

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


MdmIllegalStateException

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

Parameters:
messageKey - the message key

MdmIllegalStateException

public MdmIllegalStateException(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.

MdmIllegalStateException

public MdmIllegalStateException(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.
Method Detail

getMessageKey

public String getMessageKey()
Returns message key

Returns:
the message key

getMessageParameters

public Object[] getMessageParameters()
Returns message parameters

Returns:
the message parameters

getLocalizedMessage

public String getLocalizedMessage(Locale locale)
Returns localized message of the exception translated using the specified locale

Parameters:
locale - locale specifies the desired language of the translation for the message
Returns:
localized message

getLocalizedMessage

public String getLocalizedMessage()
Returns localized message of the exception translated using current JVM locale.

Returns:
localized message

getMessage

public String getMessage()
Returns localized message of the exception translated using Locale.ENGLISH

Returns:
localized message

getStackLocalizedMessages

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

Parameters:
locale - locale specifies the desired language of the translation for the messages
Returns:
stack of localized message

getStackLocalizedMessages

public String[] getStackLocalizedMessages()
Returns stack of localized message (list of messages including message of this exception and messages of all cause exceptions) translated using current JVM locale.

Returns:
stack of localized message

getStackMessages

public String[] getStackMessages()
Returns stack of localized message (list of messages including message of this exception and messages of all cause exceptions) translated using Locale.ENGLISH.

Returns:
stack of localized message

getLocalizedMessagesTrace

public String getLocalizedMessagesTrace(Locale locale)
Returns localized trace of all messages including this message and all cause messages translated using the specified locale.

Parameters:
locale - locale specifies the desired language of the translation for the messages
Returns:
stack of localized message

getLocalizedMessagesTrace

public String getLocalizedMessagesTrace()
Returns localized trace of all messages including this message and all cause messages translated using current JVM locale.

Returns:
stack of localized message

getMessagesTrace

public String getMessagesTrace()
Returns trace of all messages including this message and all cause messages translated using Locale.ENGLISH.

Returns:
stack of localized message

getLocalizedSourceMessage

public String getLocalizedSourceMessage()
Returns localized initial source message of the exception translated using current JVM locale.

Returns:
the localized source message

getLocalizedSourceMessage

public String getLocalizedSourceMessage(Locale locale)
Returns localized initial source message of the exception translated using the specified locale.

Parameters:
locale - locale specifies the desired language of the translation for the message
Returns:
the localized source message

getSourceMessage

public String getSourceMessage()
Returns initial source message of the exception translated using Locale.ENGLISH

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.