psdi.util

Interface MXExceptionAdapter



  • public interface MXExceptionAdapter
    Interface to be implemented by all classes that "adapt" non-MXExceptions to MXException. T is the exception class "adapted" by class that implements this interface. An implementation for a type T must be able to handle all subclasses of T.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.String getMessage(java.lang.Exception exception, java.lang.String langCode)
      Retrieves the localized/translated exception message for the specified exception and language code.
      MXException toMXException(java.lang.Exception exception)
      Converts the specified exception into an MXException.
    • Method Detail

      • getMessage

        java.lang.String getMessage(java.lang.Exception exception,
                                    java.lang.String langCode)
        Retrieves the localized/translated exception message for the specified exception and language code.
        Parameters:
        exception - The exception for which to retrieve the message.
        langCode - The Maximo language code for which to retrieve the message.
      • toMXException

        MXException toMXException(java.lang.Exception exception)
        Converts the specified exception into an MXException.
        Parameters:
        exception - The exception to be converted.