com.lts.ipc
Class IPCException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.lts.ipc.IPCException
All Implemented Interfaces:
java.io.Serializable

public class IPCException
extends java.lang.Exception

A problem occurred while trying to use an IPC mechanism.

This class allows clients to distinguish between exceptions generated by the classes in this package and exceptions from other sources. The exact nature of the exception should be denoted by the message, which should be taken from one of the constants defined in the Messages class.

Author:
cnh
See Also:
Serialized Form

Nested Class Summary
static class IPCException.Errors
           
 
Field Summary
static java.lang.String MSG_ALREADY_CONNECTED
           
static java.lang.String MSG_ERROR_CREATING_MAP
           
static java.lang.String MSG_ERROR_OPENING_MAPPING_FILE
           
static java.lang.String MSG_EXCEPTION_CREATING_FILE
           
static java.lang.String MSG_NOT_CONNECTED
           
static java.lang.String MSG_PERMISSIONS
           
static java.lang.String MSG_UNKNOWN
           
 
Constructor Summary
IPCException()
           
IPCException(IPCException.Errors error)
           
IPCException(IPCException.Errors error, java.lang.Throwable t)
           
IPCException(java.lang.String msg)
           
IPCException(java.lang.String msg, java.lang.Throwable cause)
           
IPCException(java.lang.Throwable cause)
           
 
Method Summary
 IPCException.Errors getError()
           
 void setError(IPCException.Errors error)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MSG_ALREADY_CONNECTED

public static final java.lang.String MSG_ALREADY_CONNECTED
See Also:
Constant Field Values

MSG_ERROR_OPENING_MAPPING_FILE

public static final java.lang.String MSG_ERROR_OPENING_MAPPING_FILE
See Also:
Constant Field Values

MSG_ERROR_CREATING_MAP

public static final java.lang.String MSG_ERROR_CREATING_MAP
See Also:
Constant Field Values

MSG_NOT_CONNECTED

public static final java.lang.String MSG_NOT_CONNECTED
See Also:
Constant Field Values

MSG_PERMISSIONS

public static final java.lang.String MSG_PERMISSIONS
See Also:
Constant Field Values

MSG_UNKNOWN

public static final java.lang.String MSG_UNKNOWN
See Also:
Constant Field Values

MSG_EXCEPTION_CREATING_FILE

public static final java.lang.String MSG_EXCEPTION_CREATING_FILE
See Also:
Constant Field Values
Constructor Detail

IPCException

public IPCException()

IPCException

public IPCException(java.lang.String msg)

IPCException

public IPCException(java.lang.Throwable cause)

IPCException

public IPCException(java.lang.String msg,
                    java.lang.Throwable cause)

IPCException

public IPCException(IPCException.Errors error)

IPCException

public IPCException(IPCException.Errors error,
                    java.lang.Throwable t)
Method Detail

getError

public IPCException.Errors getError()

setError

public void setError(IPCException.Errors error)