public 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).
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty| Constructor and 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 and Description |
|---|---|
String |
getErrorCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OpenException(String aMessage, String aErrorCode)
aMessage - the a messageaErrorCode - the a error codepublic OpenException(String aMessage, Throwable aCause, String aErrorCode)
aMessage - the a messageaCause - the a causeaErrorCode - the a 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 a causeaErrorCode - the a error codepublic OpenException(Throwable cause)
cause - the causepublic String getErrorCode()
getErrorCode in interface org.refcodes.exception.ErrorCodeAccessorCopyright © 2018. All rights reserved.