java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.decoupling.DependencyException
- All Implemented Interfaces:
Serializable
,DependencyAccessor
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
- Direct Known Subclasses:
DependencyException.DependenciesException
,DependencyException.DependencyClaimException
,InstallDependencyException
public abstract class DependencyException
extends org.refcodes.exception.AbstractException
implements DependencyAccessor
The
DependencyException
is the base checked exception for the
refcodes-decoupling
package.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
TheDependencyException.ClaimDependenciesException
is aDependencyException.DependenciesException
containing an additional relatedClaim
instance.protected static class
TheDependencyException.DependenciesException
is aDependencyException
containing additional related dependency.protected static class
TheDependencyException.DependencyClaimException
is aDependencyException
containing an additional relatedClaim
instance relative to associatedClaim
instances.protected static class
TheDependencyException.FactoryDependenciesException
is aDependencyException.DependenciesException
containing an additional relatedFactoryClaim
instance.protected static class
TheDependencyException.InitializerDependenciesException
is aDependencyException.DependenciesException
containing an additional relatedInitializerClaim
instance.Nested classes/interfaces inherited from interface org.refcodes.decoupling.DependencyAccessor
DependencyAccessor.DependencyBuilder<T,
B extends DependencyAccessor.DependencyBuilder<T, B>>, DependencyAccessor.DependencyMutator<T>, DependencyAccessor.DependencyProperty<T> 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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDependencyException
(String aMessage, Dependency<?> aDependency) DependencyException
(String aMessage, Dependency<?> aDependency, String aErrorCode) DependencyException
(String aMessage, Dependency<?> aDependency, Throwable aCause) DependencyException
(String aMessage, Dependency<?> aDependency, Throwable aCause, String aErrorCode) DependencyException
(Dependency<?> aDependency, Throwable aCause) DependencyException
(Dependency<?> aDependency, Throwable aCause, String aErrorCode) -
Method Summary
Modifier and TypeMethodDescriptionDependency<?>
Retrieves the dependency from the dependency property.Object[]
Methods inherited from class org.refcodes.exception.AbstractException
getErrorCode, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.exception.Trap
toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Field Details
-
_dependency
-
-
Constructor Details
-
DependencyException
- Parameters:
aDependency
- The relatedDependency
.
-
DependencyException
public DependencyException(String aMessage, Dependency<?> aDependency, Throwable aCause, String aErrorCode) - Parameters:
aDependency
- The relatedDependency
.
-
DependencyException
- Parameters:
aDependency
- The relatedDependency
.
-
DependencyException
- Parameters:
aDependency
- The relatedDependency
.
-
DependencyException
- Parameters:
aDependency
- The relatedDependency
.
-
DependencyException
- Parameters:
aDependency
- The relatedDependency
.
-
-
Method Details
-
getDependency
Retrieves the dependency from the dependency property.- Specified by:
getDependency
in interfaceDependencyAccessor
- Returns:
- The dependency stored by the dependency property.
-
getPatternArguments
- Specified by:
getPatternArguments
in interfaceorg.refcodes.exception.Trap
-