com.ibm.commerce.component.exception

Class ServiceExceptionTransformer

  • java.lang.Object
    • com.ibm.commerce.component.exception.ServiceExceptionTransformer


  • public class ServiceExceptionTransformer
    extends java.lang.Object
    Provides methods to convert other types of exceptions into a ServiceException.
    • Method Detail

      • toServiceException

        public static ServiceException toServiceException(ECException ecException,
                                                          java.util.Locale locale)
        Returns the ServiceException representation of a given ECException.
        Parameters:
        ecException - the ECException to convert
        locale - the locale to use in conversion
        Returns:
        the ServiceException representation
      • toServiceException

        public static ServiceException toServiceException(BusinessContextServiceException bcsException,
                                                          java.util.Locale locale)
        Returns the ServiceException representation of a given BusinessContextServiceException.
        Parameters:
        bcsException - the BusinessContextServiceException to convert
        locale - the locale to use in conversion
        Returns:
        the ServiceException representation