-
- All Implemented Interfaces:
-
java.io.Serializable
public final class BorgException.DroneNotFoundException extends BorgException
Thrown when a required component is missing from the collective.
Why check dependencies upfront?
Fails fast before any initialization starts
Prevents partial system initialization
Makes dependency errors obvious
Helps maintain clean architecture
Common scenarios:
Missing dependency registration
Incorrect dependency declaration
Module configuration errors
Best practices:
Use dependency injection frameworks
Maintain a central registry of drones
Document dependencies clearly
Write integration tests
-
-
Constructor Summary
Constructors Constructor Description BorgException.DroneNotFoundException(Class<?> drone, Class<?> requiredDrone)
-
Method Summary
Modifier and Type Method Description final Class<?>getDrone()final Class<?>getRequiredDrone()ThrowablegetCause()StringgetMessage()-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getRequiredDrone
final Class<?> getRequiredDrone()
-
getMessage
String getMessage()
-
-
-
-