Class VFSTransportErrorHandler

java.lang.Object
org.apache.synapse.transport.vfs.VFSTransportErrorHandler

public class VFSTransportErrorHandler extends Object
This class is used to handle errors in VFS transport

We have not modified the original implementation, but we have included the error handling scenarios from VFSTransportListener, VFSTransportSender and PollTableEntry in this class.

  • Constructor Details

    • VFSTransportErrorHandler

      public VFSTransportErrorHandler()
  • Method Details

    • logException

      public static void logException(org.apache.commons.logging.Log log, VFSTransportErrorHandler.LogType type, String message, Exception e)
      This method is used to log exceptions with exception
      Parameters:
      log - Log
      type - VFSTransportErrorHandler.LogType
      message - String message to be logged
      e - Exception
    • logException

      public static void logException(org.apache.commons.logging.Log log, VFSTransportErrorHandler.LogType type, String message, String configName, Exception e)
      This method is used to log exceptions with exception
      Parameters:
      log - Log
      type - VFSTransportErrorHandler.LogType
      message - String message to be logged
      configName - String name of the configuration
      e - Exception
    • logException

      public static void logException(org.apache.commons.logging.Log log, VFSTransportErrorHandler.LogType type, String message)
      This method is used to log exceptions without exception
      Parameters:
      log - Log
      type - VFSTransportErrorHandler.LogType
      message - String message to be logged
    • logException

      public static void logException(org.apache.commons.logging.Log log, VFSTransportErrorHandler.LogType type, String message, String configName)
      This method is used to log exceptions without exception
      Parameters:
      log - Log
      type - VFSTransportErrorHandler.LogType
      message - String message to be logged
      configName - String name of the configuration
    • 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