Class VFSTransportErrorHandler

    • Constructor Detail

      • VFSTransportErrorHandler

        public VFSTransportErrorHandler()
    • Method Detail

      • handleException

        public static void handleException​(org.apache.commons.logging.Log log,
                                           String message,
                                           Exception e)
                                    throws org.apache.axis2.AxisFault
        This method is used to handle exceptions. Log error message and throws an AxisFault with the exception
        Parameters:
        log - Log
        message - String message to be logged
        e - Exception
        Throws:
        org.apache.axis2.AxisFault
      • handleException

        public static void handleException​(org.apache.commons.logging.Log log,
                                           String message,
                                           String configName,
                                           Exception e)
                                    throws org.apache.axis2.AxisFault
        This method is used to handle exceptions. Log error message and throws an AxisFault with the exception
        Parameters:
        log - Log
        message - String message to be logged
        configName - String name of the configuration
        e - Exception
        Throws:
        org.apache.axis2.AxisFault
      • handleException

        public static void handleException​(org.apache.commons.logging.Log log,
                                           String message)
                                    throws org.apache.axis2.AxisFault
        This method is used to handle exceptions. Log error message and throws an AxisFault
        Parameters:
        log - Log
        message - String message to be logged
        Throws:
        org.apache.axis2.AxisFault
      • handleException

        public static void handleException​(org.apache.commons.logging.Log log,
                                           String message,
                                           String configName)
                                    throws org.apache.axis2.AxisFault
        This method is used to handle exceptions. Log error message and throws an AxisFault
        Parameters:
        log - Log
        message - String message to be logged
        configName - String name of the configuration
        Throws:
        org.apache.axis2.AxisFault
      • printStackTrace

        public static void printStackTrace​(Exception e)
        This method is used to handle print the stack trace
        Parameters:
        e - InterruptedException
      • throwException

        public static void throwException​(RuntimeException e)
        This method is used to throw a Runtime exception
        Parameters:
        e - Exception
      • constructLogMessage

        public static String constructLogMessage​(String message,
                                                 String configName)
        This method is used to construct the log message
        Parameters:
        message - String message to be logged
        configName - String name of the configuration
        Returns:
        String constructed log message