Package org.refcodes.component
Class OpenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.refcodes.component.OpenException
-
- All Implemented Interfaces:
org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
- Direct Known Subclasses:
OpenTimeoutException
public class OpenException extends java.io.IOException implements org.refcodes.exception.Trap
Thrown in case opening or accessing an open line (connection, junction, link) caused problems. Usually a method similar toOpenable.open()
throws such an exception.ATTENTION: This
Exception
does not provide a dedicatedConnectionAccessor
as aLinkComponent
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 theIOException
. E.g. JAVA APIs throw anIOException
upon close, theClosable
mixin throws an exceptionOpenException
upon failure which can be assigned to anIOException
reference (e.g. caught as anIOException
).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenException.OpenRuntimeException
Unchecked exception with the same semantics as theOpenException
.-
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
-
-
Constructor Summary
Constructors Constructor Description OpenException(java.lang.String message)
Instantiates a new open exception.OpenException(java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new open exception.OpenException(java.lang.String message, java.lang.Throwable cause)
Instantiates a new open exception.OpenException(java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new open exception.OpenException(java.lang.Throwable cause)
Instantiates a new open exception.OpenException(java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new open exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getErrorCode()
-
-
-
Constructor Detail
-
OpenException
public OpenException(java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new open exception.- Parameters:
aMessage
- the messageaErrorCode
- the error code
-
OpenException
public OpenException(java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new open exception.- Parameters:
aMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
OpenException
public OpenException(java.lang.String message, java.lang.Throwable cause)
Instantiates a new open exception.- Parameters:
message
- the messagecause
- the cause
-
OpenException
public OpenException(java.lang.String message)
Instantiates a new open exception.- Parameters:
message
- the message
-
OpenException
public OpenException(java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new open exception.- Parameters:
aCause
- the causeaErrorCode
- the error code
-
OpenException
public OpenException(java.lang.Throwable cause)
Instantiates a new open exception.- Parameters:
cause
- the cause
-
-