Class ConnectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.alachisoft.ncache.runtime.exceptions.CacheException
-
- com.alachisoft.ncache.runtime.exceptions.OperationFailedException
-
- com.alachisoft.ncache.runtime.exceptions.ConnectionException
-
- All Implemented Interfaces:
java.io.Serializable
public class ConnectionException extends OperationFailedException
Thrown whenever connection with cache server is lost while performing an operation on an outproc cache.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.alachisoft.ncache.runtime.exceptions.OperationFailedException
_isTracable
-
-
Constructor Summary
Constructors Constructor Description ConnectionException()
Default constructor.ConnectionException(int errorCode)
Overloaded constructorConnectionException(int errorCode, java.lang.String reason)
Overloaded constructorConnectionException(int errorCode, java.lang.String reason, java.lang.Throwable cause)
Overloaded constructorConnectionException(int errorCode, java.lang.String reason, java.net.InetAddress ipAddress, int port)
Overloaded constructorConnectionException(int errorCode, java.net.InetAddress ipAddress, int port)
Overloaded constructorConnectionException(java.lang.String reason)
Overloaded constructor, takes the reason as parameter.ConnectionException(java.lang.String reason, java.net.InetAddress ipAddress, int port)
Overloaded constructor, takes the reason, ipAddress and port as parameter.ConnectionException(java.net.InetAddress ipAddress, int port)
Overloaded constructor, takes the ipAddress and port as parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.InetAddress
getaddress()
int
getport()
-
Methods inherited from class com.alachisoft.ncache.runtime.exceptions.OperationFailedException
getIsTracable
-
Methods inherited from class com.alachisoft.ncache.runtime.exceptions.CacheException
getErrorCode, printStackTrace, setErrorCode
-
-
-
-
Constructor Detail
-
ConnectionException
public ConnectionException()
Default constructor.
-
ConnectionException
public ConnectionException(java.lang.String reason)
Overloaded constructor, takes the reason as parameter.
-
ConnectionException
public ConnectionException(java.lang.String reason, java.net.InetAddress ipAddress, int port)
Overloaded constructor, takes the reason, ipAddress and port as parameter.
-
ConnectionException
public ConnectionException(java.net.InetAddress ipAddress, int port)
Overloaded constructor, takes the ipAddress and port as parameter.
-
ConnectionException
public ConnectionException(int errorCode)
Overloaded constructor- Parameters:
errorCode
- assigned errorcode
-
ConnectionException
public ConnectionException(int errorCode, java.lang.String reason)
Overloaded constructor- Parameters:
errorCode
- assigned errorcodereason
- exception message
-
ConnectionException
public ConnectionException(int errorCode, java.lang.String reason, java.lang.Throwable cause)
Overloaded constructor- Parameters:
errorCode
- assigned errorcodereason
- exception messagecause
- cause
-
ConnectionException
public ConnectionException(int errorCode, java.lang.String reason, java.net.InetAddress ipAddress, int port)
Overloaded constructor- Parameters:
errorCode
- assigned errorcodereason
- exception messageipAddress
-port
-
-
ConnectionException
public ConnectionException(int errorCode, java.net.InetAddress ipAddress, int port)
Overloaded constructor- Parameters:
errorCode
- assigned errorcodeipAddress
-port
-
-
-