net.sf.jfilesync.engine
Class TErrorHandling

java.lang.Object
  extended by net.sf.jfilesync.engine.TErrorHandling

public class TErrorHandling
extends java.lang.Object


Nested Class Summary
(package private) static class TErrorHandling.ErrorReportDialog
           
 
Field Summary
static int ERROR_ADVICE_ABORT
           
static int ERROR_ADVICE_ABORT_FUNCTION
           
static int ERROR_ADVICE_ABORT_PROGRAM
           
static int ERROR_ADVICE_NON
           
static int ERROR_ADVICE_RETRY
           
static int ERROR_CONNECTION_AUTHENTICATION
           
static int ERROR_CONNECTION_FAILURE
           
static int ERROR_CONNECTION_LOST
           
static int ERROR_CONNECTION_NO_DATA
           
static int ERROR_CONNECTION_NOT_ACTIVE
           
static int ERROR_CONNECTION_TIMEDOUT
           
static int ERROR_CONNECTION_UNKNOWN_HOST
           
static int ERROR_GET_SYNC_DIFF
           
static int ERROR_GET_SYNC_TREE
           
static int ERROR_IO_GENERAL
           
static int ERROR_IO_LS
           
static int ERROR_IO_PATH_UNKNOWN
           
static int ERROR_IO_PERMISSIONS
           
static int ERROR_PLUGIN_NOT_FOUND
           
static int ERROR_SSH_CONNECTION_HOSTKEY_VERIFICATION
           
static int ERROR_SYNC_PERFORMER
           
static int ERROR_THREAD_WAIT
           
static int ERROR_UNKNOWN_WORKER_ERROR
           
static int ERROR_UNSUPPORTED_PROTOCOL
           
private static int errorDialogType
           
private static java.lang.String errorHeader
           
private static int errorLevel
           
private static java.lang.String errorMsg
           
private static java.lang.Object[] errorPossibilities
           
private static java.lang.String extraErrorMsg
           
private static int LEVEL_ERROR
           
private static int LEVEL_INFO
           
private static int LEVEL_PANIC
           
private static int LEVEL_WARN
           
static int NO_ERROR
           
 
Constructor Summary
TErrorHandling()
           
 
Method Summary
protected static javax.swing.ImageIcon createImageIcon(java.lang.String path)
           
private static void error(int level, java.lang.String msg)
           
private static void errorWithLangKey(int level, java.lang.String key)
           
static int reportError(int errorNumber)
           
static int reportError(int errorNumber, java.lang.String additionalErrorMsg)
           
static boolean reportErrorSubsequently(int errornum)
           
static boolean reportErrorSubsequently(int errorNumber, java.lang.String additionalErrorMsg)
           
protected static void setupError(int errorNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ERROR

public static final int NO_ERROR
See Also:
Constant Field Values

ERROR_CONNECTION_FAILURE

public static final int ERROR_CONNECTION_FAILURE
See Also:
Constant Field Values

ERROR_CONNECTION_NO_DATA

public static final int ERROR_CONNECTION_NO_DATA
See Also:
Constant Field Values

ERROR_CONNECTION_AUTHENTICATION

public static final int ERROR_CONNECTION_AUTHENTICATION
See Also:
Constant Field Values

ERROR_CONNECTION_UNKNOWN_HOST

public static final int ERROR_CONNECTION_UNKNOWN_HOST
See Also:
Constant Field Values

ERROR_CONNECTION_TIMEDOUT

public static final int ERROR_CONNECTION_TIMEDOUT
See Also:
Constant Field Values

ERROR_CONNECTION_NOT_ACTIVE

public static final int ERROR_CONNECTION_NOT_ACTIVE
See Also:
Constant Field Values

ERROR_CONNECTION_LOST

public static final int ERROR_CONNECTION_LOST
See Also:
Constant Field Values

ERROR_IO_GENERAL

public static final int ERROR_IO_GENERAL
See Also:
Constant Field Values

ERROR_IO_LS

public static final int ERROR_IO_LS
See Also:
Constant Field Values

ERROR_IO_PERMISSIONS

public static final int ERROR_IO_PERMISSIONS
See Also:
Constant Field Values

ERROR_IO_PATH_UNKNOWN

public static final int ERROR_IO_PATH_UNKNOWN
See Also:
Constant Field Values

ERROR_SSH_CONNECTION_HOSTKEY_VERIFICATION

public static final int ERROR_SSH_CONNECTION_HOSTKEY_VERIFICATION
See Also:
Constant Field Values

ERROR_PLUGIN_NOT_FOUND

public static final int ERROR_PLUGIN_NOT_FOUND
See Also:
Constant Field Values

ERROR_UNSUPPORTED_PROTOCOL

public static final int ERROR_UNSUPPORTED_PROTOCOL
See Also:
Constant Field Values

ERROR_GET_SYNC_TREE

public static final int ERROR_GET_SYNC_TREE
See Also:
Constant Field Values

ERROR_GET_SYNC_DIFF

public static final int ERROR_GET_SYNC_DIFF
See Also:
Constant Field Values

ERROR_SYNC_PERFORMER

public static final int ERROR_SYNC_PERFORMER
See Also:
Constant Field Values

ERROR_UNKNOWN_WORKER_ERROR

public static final int ERROR_UNKNOWN_WORKER_ERROR
See Also:
Constant Field Values

ERROR_THREAD_WAIT

public static final int ERROR_THREAD_WAIT
See Also:
Constant Field Values

ERROR_ADVICE_NON

public static final int ERROR_ADVICE_NON
See Also:
Constant Field Values

ERROR_ADVICE_RETRY

public static final int ERROR_ADVICE_RETRY
See Also:
Constant Field Values

ERROR_ADVICE_ABORT

public static final int ERROR_ADVICE_ABORT
See Also:
Constant Field Values

ERROR_ADVICE_ABORT_FUNCTION

public static final int ERROR_ADVICE_ABORT_FUNCTION
See Also:
Constant Field Values

ERROR_ADVICE_ABORT_PROGRAM

public static final int ERROR_ADVICE_ABORT_PROGRAM
See Also:
Constant Field Values

LEVEL_INFO

private static final int LEVEL_INFO
See Also:
Constant Field Values

LEVEL_WARN

private static final int LEVEL_WARN
See Also:
Constant Field Values

LEVEL_ERROR

private static final int LEVEL_ERROR
See Also:
Constant Field Values

LEVEL_PANIC

private static final int LEVEL_PANIC
See Also:
Constant Field Values

errorLevel

private static int errorLevel

errorMsg

private static java.lang.String errorMsg

errorHeader

private static java.lang.String errorHeader

errorDialogType

private static int errorDialogType

errorPossibilities

private static java.lang.Object[] errorPossibilities

extraErrorMsg

private static java.lang.String extraErrorMsg
Constructor Detail

TErrorHandling

public TErrorHandling()
Method Detail

setupError

protected static final void setupError(int errorNumber)

error

private static void error(int level,
                          java.lang.String msg)

errorWithLangKey

private static void errorWithLangKey(int level,
                                     java.lang.String key)

reportError

public static final int reportError(int errorNumber,
                                    java.lang.String additionalErrorMsg)

reportErrorSubsequently

public static final boolean reportErrorSubsequently(int errorNumber,
                                                    java.lang.String additionalErrorMsg)

reportError

public static final int reportError(int errorNumber)

reportErrorSubsequently

public static boolean reportErrorSubsequently(int errornum)

createImageIcon

protected static javax.swing.ImageIcon createImageIcon(java.lang.String path)