public class ComponentNotFoundException extends UncheckedException:
Reports a missing component during dependency lookup or injection.
import klyn.di
try:
DIContext().getComponent("missing")
catch error as ComponentNotFoundException:
print(error.message)| Modifier and Type | Member | Description |
|---|---|---|
| public | ComponentNotFoundExceptionComponentNotFoundException(message as String = "Component not found"): |
Creates a failed component lookup diagnostic. |