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.TrapThrown 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
Exceptiondoes not provide a dedicatedConnectionAccessoras aLinkComponentdoes 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 anIOExceptionupon close, theClosablemixin throws an exceptionOpenExceptionupon failure which can be assigned to anIOExceptionreference (e.g. caught as anIOException).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenException.OpenRuntimeExceptionUnchecked 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.StringgetErrorCode()
-
-
-
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
-
-