Package org.medcare.igtl.util
Class ErrorManager
java.lang.Object
org.medcare.igtl.util.ErrorManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
-
Field Details
-
RESPONSE_NOT_MANAGED
public static final int RESPONSE_NOT_MANAGED- See Also:
-
RESPONSE_CRC_EXCEPTION
public static final int RESPONSE_CRC_EXCEPTION- See Also:
-
RESPONSE_EXCEPTION
public static final int RESPONSE_EXCEPTION- See Also:
-
REQUEST_EXCEPTION
public static final int REQUEST_EXCEPTION- See Also:
-
REQUEST_INTERRUPT_EXCEPTION
public static final int REQUEST_INTERRUPT_EXCEPTION- See Also:
-
RESPONSE_INTERRUPTED_EXCEPTION
public static final int RESPONSE_INTERRUPTED_EXCEPTION- See Also:
-
MESSAGE_NOT_MANAGED
public static final int MESSAGE_NOT_MANAGED- See Also:
-
MESSAGE_CRC_EXCEPTION
public static final int MESSAGE_CRC_EXCEPTION- See Also:
-
MESSAGE_EXCEPTION
public static final int MESSAGE_EXCEPTION- See Also:
-
MESSAGE_INTERRUPTED_EXCEPTION
public static final int MESSAGE_INTERRUPTED_EXCEPTION- See Also:
-
SERVERTHREAD_ABNORMAL_ANSWER
public static final int SERVERTHREAD_ABNORMAL_ANSWER- See Also:
-
OPENIGTCLIENT_UNKNOWNHOST_EXCEPTION
public static final int OPENIGTCLIENT_UNKNOWNHOST_EXCEPTION- See Also:
-
OPENIGTCLIENT_IO_EXCEPTION
public static final int OPENIGTCLIENT_IO_EXCEPTION- See Also:
-
OPENIGTCLIENT_EXCEPTION
public static final int OPENIGTCLIENT_EXCEPTION- See Also:
-
OPENIGTSERVER_IO_EXCEPTION
public static final int OPENIGTSERVER_IO_EXCEPTION- See Also:
-
REQUEST_RESULT_ERROR
public static final int REQUEST_RESULT_ERROR- See Also:
-
REQUEST_ERROR
public static final int REQUEST_ERROR- See Also:
-
APPLICATION_UNKNOWNHOST_EXCEPTION
public static final int APPLICATION_UNKNOWNHOST_EXCEPTION- See Also:
-
APPLICATION_IO_EXCEPTION
public static final int APPLICATION_IO_EXCEPTION- See Also:
-
APPLICATION_EXCEPTION
public static final int APPLICATION_EXCEPTION- See Also:
-
RESPONSE_PB_RESULT
public static final int RESPONSE_PB_RESULT- See Also:
-
MESSAGE_ERROR
public static final int MESSAGE_ERROR- See Also:
-
RESPONSE_ERROR
public static final int RESPONSE_ERROR- See Also:
-
MESSAGE_PB_RESULT
public static final int MESSAGE_PB_RESULT- See Also:
-
MESSAGE_HANDLER_ERROR
public static final int MESSAGE_HANDLER_ERROR- See Also:
-
RESPONSE_HANDLER_ERROR
public static final int RESPONSE_HANDLER_ERROR- See Also:
-
REQUEST_TYPE_NOT_FOUND
public static final int REQUEST_TYPE_NOT_FOUND- See Also:
-
SERVERTHREAD_IO_EXCEPTION
public static final int SERVERTHREAD_IO_EXCEPTION- See Also:
-
lm
-
fh
-
logger
-
-
Constructor Details
-
ErrorManager
public ErrorManager()Default ErrorManager constructor.
-
-
Method Details
-
error
Method to manage errors- Parameters:
message
- message to logexception
- exception to logerrorCode
- errorCode to log
-
getLogger
Method to get Logger used by this ErrorManager- Returns:
- the Logger
-
setLogger
Method to set Logger used by this ErrorManager- Parameters:
logger
- the Logger
-