Package org.apache.synapse.transport.vfs
Class VFSTransportErrorHandler
java.lang.Object
org.apache.synapse.transport.vfs.VFSTransportErrorHandler
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enum is used to define the log type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconstructLogMessage(String message, String configName) This method is used to construct the log messagestatic voidhandleException(org.apache.commons.logging.Log log, String message) This method is used to handle exceptions.static voidhandleException(org.apache.commons.logging.Log log, String message, Exception e) This method is used to handle exceptions.static voidhandleException(org.apache.commons.logging.Log log, String message, String configName) This method is used to handle exceptions.static voidhandleException(org.apache.commons.logging.Log log, String message, String configName, Exception e) This method is used to handle exceptions.static voidlogException(org.apache.commons.logging.Log log, VFSTransportErrorHandler.LogType type, String message) This method is used to log exceptions without exceptionstatic voidlogException(org.apache.commons.logging.Log log, VFSTransportErrorHandler.LogType type, String message, Exception e) This method is used to log exceptions with exceptionstatic voidlogException(org.apache.commons.logging.Log log, VFSTransportErrorHandler.LogType type, String message, String configName) This method is used to log exceptions without exceptionstatic voidlogException(org.apache.commons.logging.Log log, VFSTransportErrorHandler.LogType type, String message, String configName, Exception e) This method is used to log exceptions with exceptionstatic voidThis method is used to handle print the stack tracestatic voidThis method is used to throw a Runtime exception
-
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- Logtype-VFSTransportErrorHandler.LogTypemessage- String message to be loggede- 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- Logtype-VFSTransportErrorHandler.LogTypemessage- String message to be loggedconfigName- String name of the configuratione- 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- Logtype-VFSTransportErrorHandler.LogTypemessage- 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- Logtype-VFSTransportErrorHandler.LogTypemessage- String message to be loggedconfigName- 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- Logmessage- String message to be loggede- 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- Logmessage- String message to be loggedconfigName- String name of the configuratione- 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- Logmessage- 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- Logmessage- String message to be loggedconfigName- String name of the configuration- Throws:
org.apache.axis2.AxisFault
-
printStackTrace
This method is used to handle print the stack trace- Parameters:
e- InterruptedException
-
throwException
This method is used to throw a Runtime exception- Parameters:
e- Exception
-
constructLogMessage
This method is used to construct the log message- Parameters:
message- String message to be loggedconfigName- String name of the configuration- Returns:
- String constructed log message
-