Secure iNet Factory

com.jscape.inet.ipclient
Class IpClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.jscape.inet.ipclient.IpClientException
All Implemented Interfaces:
ExceptionWrapper, java.io.Serializable

public class IpClientException
extends java.lang.Exception
implements ExceptionWrapper

IpClientException is thrown by many methods of IpClient class. The methods are masking various exception types into IpClientException, but the event message will be propagated.

See Also:
Serialized Form

Constructor Summary
IpClientException(java.lang.String message)
          Creates exception with specified message string.
IpClientException(java.lang.String message, java.lang.Exception exception)
          IpClientException is thrown by many methods of IpClient class.
 
Method Summary
 java.lang.Exception getException()
          Gets Exception which caused this IpClientException.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IpClientException

public IpClientException(java.lang.String message)
Creates exception with specified message string.

Parameters:
message - a message describing error

IpClientException

public IpClientException(java.lang.String message,
                         java.lang.Exception exception)
IpClientException is thrown by many methods of IpClient class. The methods are masking various exception types into IpClientException, but the event message will be propagated. In case that the cause for throwing IpClientException is not exception but invalid client operation or server response, IpClientException message will contain textual part of server response.

Parameters:
message - the message of exception
exception - the exception which caused this exception
Method Detail

getException

public java.lang.Exception getException()
Gets Exception which caused this IpClientException.

Specified by:
getException in interface ExceptionWrapper
Returns:
an Exception or null if not found

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved