ComponentNotFoundException
classin packageklyn.di
public class ComponentNotFoundException extends UncheckedException:
└ ComponentNotFoundException

Reports a missing component during dependency lookup or injection.

import klyn.di

try:
DIContext().getComponent("missing")
catch error as ComponentNotFoundException:
print(error.message)
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public ComponentNotFoundException
ComponentNotFoundException(message as String = "Component not found"):
Creates a failed component lookup diagnostic.
Inherited Methods
methodInherited Methods from UncheckedException: toString
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toString, toXml