com.sapportals.wcm.rfadapter

Class WcmExceptionTextUtil

java.lang.Object
  extended by com.sapportals.wcm.rfadapter.WcmExceptionTextUtil

public final class WcmExceptionTextUtil
extends Object


Method Summary
static String getText(WcmException e, Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getText

public static String getText(WcmException e,
                             Locale locale)
Parameters:
e - the exception to search the text for, must not be null
locale - the locale to retrieve the text for, must not be null
Returns:
the fitting text for the given exception. First the exception's getLocalizedMessage method is checked. If no text is returned, this class checks if there is a mapping defined for the given exception class. If so, the appropriate message is returned. Otherwise, null will be returned
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice