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
public class TimeoutIoException extends AbstractIOException
The
TimeoutIoException
is thrown whenever in I/O related timeout
occurs. The TimeoutIoException
is a sub-class of the
IOException
.- See Also:
- Serialized Form
-
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
Constructors Constructor Description TimeoutIoException(long aTimeoutInMs, String aMessage)
TimeoutIoException(long aTimeoutInMs, String aMessage, String aErrorCode)
TimeoutIoException(long aTimeoutInMs, String aMessage, Throwable aCause)
TimeoutIoException(long aTimeoutInMs, String aMessage, Throwable aCause, String aErrorCode)
TimeoutIoException(long aTimeoutInMs, Throwable aCause)
TimeoutIoException(long aTimeoutInMs, Throwable aCause, String aErrorCode)
-
Method Summary
Modifier and Type Method Description long
getTimeoutInMs()
The timeout attribute in milliseconds.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
-
Constructor Details
-
TimeoutIoException
- Parameters:
aTimeoutInMs
- The timeout in milliseconds causing the exception.
-
TimeoutIoException
- Parameters:
aTimeoutInMs
- The timeout in milliseconds causing the exception.
-
TimeoutIoException
- Parameters:
aTimeoutInMs
- The timeout in milliseconds causing the exception.
-
TimeoutIoException
- Parameters:
aTimeoutInMs
- The timeout in milliseconds causing the exception.
-
TimeoutIoException
- Parameters:
aTimeoutInMs
- The timeout in milliseconds causing the exception.
-
TimeoutIoException
- Parameters:
aTimeoutInMs
- The timeout in milliseconds causing the exception.
-
-
Method Details
-
getTimeoutInMs
public long getTimeoutInMs()The timeout attribute in milliseconds.- Returns:
- An integer with the timeout in milliseconds.
-