java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.exception.IORuntimeException
- All Implemented Interfaces:
Serializable
,ErrorCodeAccessor
,Trap
Unchecked exception with the same semantics as the
IOException
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty
-
Constructor Summary
ConstructorDescriptionIORuntimeException
(String message) Instantiates a new open exception.IORuntimeException
(String aMessage, String aErrorCode) Instantiates a new open exception.IORuntimeException
(String message, Throwable cause) Instantiates a new open exception.IORuntimeException
(String aMessage, Throwable aCause, String aErrorCode) Instantiates a new open exception.IORuntimeException
(Throwable cause) Instantiates a new open exception.IORuntimeException
(Throwable aCause, String aErrorCode) Instantiates a new open exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IORuntimeException
Instantiates a new open exception.- Parameters:
aMessage
- the messageaErrorCode
- the error code
-
IORuntimeException
Instantiates a new open exception.- Parameters:
aMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
IORuntimeException
Instantiates a new open exception.- Parameters:
message
- the messagecause
- the cause
-
IORuntimeException
Instantiates a new open exception.- Parameters:
message
- the message
-
IORuntimeException
Instantiates a new open exception.- Parameters:
aCause
- the causeaErrorCode
- the error code
-
IORuntimeException
Instantiates a new open exception.- Parameters:
cause
- the cause
-
-
Method Details
-
getErrorCode
Provides the according exception code. An exception code can be provided when creating an exception and it can be used by the business logic to retrieve a language depended exception message (multi-language support) from a language pack instead of just providing the single language message as being stored by the default exceptions.- Specified by:
getErrorCode
in interfaceErrorCodeAccessor
- Overrides:
getErrorCode
in classAbstractRuntimeException
- Returns:
- The exception code in question.
-