Package com.ocient.transport
Class TransportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ocient.transport.TransportException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ServerQuiesceException
Signals that an I/O operation on a transport has failed. This exception is a subclass of
Exception.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSpecifies whether the exception occurred during a send or receive operation. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransportException(TransportException.FailMode failMode, String message) Constructs a new TransportException with the specified error message.protectedTransportException(TransportException.FailMode failMode, String message, Throwable cause) Constructs a new TransportException with the specified fail mode and cause.protectedTransportException(TransportException.FailMode failMode, Throwable cause) Constructs a new TransportException with the specified fail mode and cause. -
Method Summary
Modifier and TypeMethodDescriptionfailMode()Returns the mode of the operation that failed.static TransportExceptionCreates a newTransportExceptionobject with aFailModeofRECVand the specified cause.static TransportExceptionCreates a newTransportExceptionobject with aFailModeofSENDand the specified cause.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransportException
Constructs a new TransportException with the specified fail mode and cause.- Parameters:
failMode- the mode of the operation that failedcause- the cause of the exception
-
TransportException
Constructs a new TransportException with the specified error message.- Parameters:
failMode- the mode of the operation that failedmessage- the error message
-
TransportException
Constructs a new TransportException with the specified fail mode and cause.- Parameters:
failMode- the mode of the operation that failedcause- the cause of the exception
-
-
Method Details
-
send
Creates a newTransportExceptionobject with aFailModeofSENDand the specified cause.- Parameters:
cause- the underlying cause of the exception- Returns:
- a new
TransportExceptionobject
-
recv
Creates a newTransportExceptionobject with aFailModeofRECVand the specified cause.- Parameters:
cause- the underlying cause of the exception- Returns:
- a new
TransportExceptionobject
-
failMode
Returns the mode of the operation that failed.- Returns:
- the fail mode
-