Class MissingDependencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.demeng.pluginbase.exceptions.BaseException
dev.demeng.pluginbase.di.exception.DependencyException
dev.demeng.pluginbase.di.exception.MissingDependencyException
- All Implemented Interfaces:
Serializable
Thrown when a required dependency cannot be resolved.
This typically occurs when:
- An interface or abstract class has no registered binding
- A required type has not been registered in the container
- A dependency is missing from the dependency graph
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMissingDependencyException(@NotNull Class<?> type) Creates a new missing dependency exception.MissingDependencyException(@NotNull String message) Creates a new missing dependency exception with a custom message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingDependencyException
Creates a new missing dependency exception.- Parameters:
type- The type that could not be resolved
-
MissingDependencyException
Creates a new missing dependency exception with a custom message.- Parameters:
message- The error message
-