Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.TrapOpenTimeoutExceptionpublic class OpenException extends IOException implements org.refcodes.exception.Trap
Openable.open() throws
such an exception.
ATTENTION: This Exception does not provide a dedicated
ConnectionAccessor as a LinkComponent does not necessary
provide dedicated connection information, it may be hard wired to another
software system's hot spot or similar with the option of opening or closing.
In order to provide compatibility with the Java APIs, this exception extends
the IOException. E.g. JAVA APIs throw an IOException upon
close, the Closable mixin throws an exception OpenException
upon failure which can be assigned to an IOException reference (e.g.
caught as an IOException).
| Modifier and Type | Class | Description |
|---|---|---|
static class |
OpenException.OpenRuntimeException |
Unchecked exception with the same semantics as the
OpenException. |
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty| Constructor | Description |
|---|---|
OpenException(String message) |
Instantiates a new open exception.
|
OpenException(String aMessage,
String aErrorCode) |
Instantiates a new open exception.
|
OpenException(String message,
Throwable cause) |
Instantiates a new open exception.
|
OpenException(String aMessage,
Throwable aCause,
String aErrorCode) |
Instantiates a new open exception.
|
OpenException(Throwable cause) |
Instantiates a new open exception.
|
OpenException(Throwable aCause,
String aErrorCode) |
Instantiates a new open exception.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getErrorCode() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OpenException(String aMessage, String aErrorCode)
aMessage - the messageaErrorCode - the error codepublic OpenException(String aMessage, Throwable aCause, String aErrorCode)
aMessage - the messageaCause - the causeaErrorCode - the error codepublic OpenException(String message, Throwable cause)
message - the messagecause - the causepublic OpenException(String message)
message - the messagepublic OpenException(Throwable aCause, String aErrorCode)
aCause - the causeaErrorCode - the error codepublic OpenException(Throwable cause)
cause - the causepublic String getErrorCode()
getErrorCode in interface org.refcodes.exception.ErrorCodeAccessorCopyright © 2018. All rights reserved.