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
).
Constructor and Description |
---|
OpenException(String message) |
OpenException(String aMessage,
String aErrorCode) |
OpenException(String message,
Throwable cause) |
OpenException(String aMessage,
Throwable aCause,
String aErrorCode) |
OpenException(Throwable cause) |
OpenException(Throwable aCause,
String aErrorCode) |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Copyright © 2016. All rights reserved.