com.vhosting.netconf.transport
Class NetconfTransportException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.vhosting.netconf.transport.NetconfTransportException
All Implemented Interfaces:
NetconfTransportError, java.io.Serializable

public class NetconfTransportException
extends java.lang.RuntimeException
implements NetconfTransportError

This exception is throws when an error occur into the transport layer or a netconf message can not be sent for any reason.

Version:
1.00, 02/11/2010
Author:
Giuseppe Palmeri
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vhosting.netconf.transport.NetconfTransportError
NetconfTransportError.FailCause, NetconfTransportError.NetconfFailCause, NetconfTransportError.TransportFailCause
 
Constructor Summary
NetconfTransportException(java.lang.Exception e, NetconfTransportError.FailCause cause)
          Create a new exception.
NetconfTransportException(java.lang.String detailMessage, NetconfTransportError.FailCause cause)
          Create a new exception.
 
Method Summary
 NetconfTransportError.FailCause getFailCause()
          Get the fail cause.
 
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
 
Methods inherited from interface com.vhosting.netconf.transport.NetconfTransportError
getMessage
 

Constructor Detail

NetconfTransportException

public NetconfTransportException(java.lang.String detailMessage,
                                 NetconfTransportError.FailCause cause)
Create a new exception.

Parameters:
detailMessage - The exception message.
cause - The fail cause.

NetconfTransportException

public NetconfTransportException(java.lang.Exception e,
                                 NetconfTransportError.FailCause cause)
Create a new exception.

Parameters:
e - The original exception that originated this exception.
cause - The fail cause.
Method Detail

getFailCause

public NetconfTransportError.FailCause getFailCause()
Get the fail cause.

Specified by:
getFailCause in interface NetconfTransportError
Returns:
The fail cause.