Class FlowControlTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.refcodes.exception.AbstractIOException
org.refcodes.serial.SerialException
org.refcodes.serial.TransmissionException
org.refcodes.serial.FlowControlException
org.refcodes.serial.FlowControlTimeoutException
- All Implemented Interfaces:
Serializable, ErrorCodeAccessor, Trap, TimeoutMillisAccessor
- Direct Known Subclasses:
FlowControlRetryException
public class FlowControlTimeoutException
extends FlowControlException
implements TimeoutMillisAccessor
Thrown in case a flow control failed due t a timeout.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodePropertyNested classes/interfaces inherited from interface TimeoutMillisAccessor
TimeoutMillisAccessor.TimeoutMillisBuilder<B>, TimeoutMillisAccessor.TimeoutMillisMutator, TimeoutMillisAccessor.TimeoutMillisProperty -
Constructor Summary
ConstructorsConstructorDescriptionFlowControlTimeoutException(long aTimeoutMillis, String aMessage) Instantiates the classFlowControlTimeoutException.FlowControlTimeoutException(long aTimeoutMillis, String aMessage, String aErrorCode) Instantiates the classFlowControlTimeoutException.FlowControlTimeoutException(long aTimeoutMillis, String aMessage, Throwable aCause) Instantiates the classFlowControlTimeoutException.FlowControlTimeoutException(long aTimeoutMillis, String aMessage, Throwable aCause, String aErrorCode) Instantiates the classFlowControlTimeoutException.FlowControlTimeoutException(long aTimeoutMillis, Throwable aCause) Instantiates the classFlowControlTimeoutException.FlowControlTimeoutException(long aTimeoutMillis, Throwable aCause, String aErrorCode) Instantiates the classFlowControlTimeoutException. -
Method Summary
Methods inherited from class AbstractIOException
getErrorCodeMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Trap
getPatternArguments, toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Constructor Details
-
FlowControlTimeoutException
Instantiates the classFlowControlTimeoutException.- Parameters:
aTimeoutMillis- The timeout in milliseconds causing the exception.aMessage- the messageaErrorCode- the error code- See Also:
-
FlowControlTimeoutException
public FlowControlTimeoutException(long aTimeoutMillis, String aMessage, Throwable aCause, String aErrorCode) Instantiates the classFlowControlTimeoutException.- Parameters:
aTimeoutMillis- The timeout in milliseconds causing the exception.aMessage- the messageaCause- the causeaErrorCode- the error code- See Also:
-
FlowControlTimeoutException
Instantiates the classFlowControlTimeoutException.- Parameters:
aTimeoutMillis- The timeout in milliseconds causing the exception.aMessage- the messageaCause- the cause- See Also:
-
FlowControlTimeoutException
Instantiates the classFlowControlTimeoutException.- Parameters:
aTimeoutMillis- The timeout in milliseconds causing the exception.aMessage- the message- See Also:
-
FlowControlTimeoutException
Instantiates the classFlowControlTimeoutException.- Parameters:
aTimeoutMillis- The timeout in milliseconds causing the exception.aCause- the causeaErrorCode- the error code- See Also:
-
FlowControlTimeoutException
Instantiates the classFlowControlTimeoutException.- Parameters:
aTimeoutMillis- The timeout in milliseconds causing the exception.aCause- the cause- See Also:
-
-
Method Details
-
getTimeoutMillis
public long getTimeoutMillis()The timeout attribute in milliseconds.- Specified by:
getTimeoutMillisin interfaceTimeoutMillisAccessor- Returns:
- An long integer with the timeout in milliseconds.
-