java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.refcodes.exception.AbstractIOException
org.refcodes.exception.TimeoutIOException
- All Implemented Interfaces:
Serializable
,ErrorCodeAccessor
,Trap
Thrown in case opening or accessing an open line (connection, junction, link)
caused timeout problems.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty
-
Constructor Summary
ConstructorDescriptionTimeoutIOException
(long aTimeoutMillis, String aMessage) Instantiates a new according exception.TimeoutIOException
(long aTimeoutMillis, String aMessage, String aErrorCode) Instantiates a new according exception.TimeoutIOException
(long aTimeoutMillis, String aMessage, Throwable aCause) Instantiates a new according exception.TimeoutIOException
(long aTimeoutMillis, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new according exception.TimeoutIOException
(long aTimeoutMillis, Throwable aCause) Instantiates a new according exception.TimeoutIOException
(long aTimeoutMillis, Throwable aCause, String aErrorCode) Instantiates a new according exception. -
Method Summary
Methods inherited from class org.refcodes.exception.AbstractIOException
getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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 org.refcodes.exception.Trap
getPatternArguments, toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Constructor Details
-
TimeoutIOException
Instantiates a new according exception.- Parameters:
aTimeoutMillis
- the timeout in msaMessage
- The aMessage describing this exception.aErrorCode
- The error code identifying this exception.
-
TimeoutIOException
public TimeoutIOException(long aTimeoutMillis, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new according exception. -
TimeoutIOException
Instantiates a new according exception. -
TimeoutIOException
Instantiates a new according exception.- Parameters:
aTimeoutMillis
- the timeout in msaMessage
- The aMessage describing this exception.
-
TimeoutIOException
Instantiates a new according exception. -
TimeoutIOException
Instantiates a new according exception.
-
-
Method Details
-
getTimeoutInMs
public long getTimeoutInMs()The timeout attribute in milliseconds.- Returns:
- An long integer with the timeout in milliseconds.
-