Package guru.zoroark.tegral.di

General-purpose utility classes and functions.

Types

Link copied to clipboard
class ComponentNotFoundException(message: String, val notFound: Identifier<*>) : TegralDiException

Exception thrown when a component is not found.

Link copied to clipboard
class ExtensionNotInstalledException(message: String) : TegralDiException

Thrown when an extension that needs to be installed was attempted to be used without being installed first.

Link copied to clipboard
class FailedToResolveException(message: String) : TegralDiException

Exception when a resolver cannot find a component in the components map it was provided.

Link copied to clipboard
class InternalErrorException(message: String, throwable: Throwable? = null) : TegralDiException

Exception thrown when something went wrong internally in Tegral DI. Unless you are messing around with Tegral DI's internal, you should probably report occurrences of these exceptions (https://github.com/utybo/Tegral/issues), thanks!

Link copied to clipboard
class InvalidDeclarationException(message: String) : TegralDiException

Exception thrown when a 'put' or another component declaration is invalid. A declaration can be invalid for any number of reasons.

Link copied to clipboard
class NotExtensibleException(message: String) : TegralDiException

Exception thrown when an operation that requires an extensible injection environment was attempted on a non-extensible environment.

Link copied to clipboard
abstract class TegralDiException(message: String, cause: Throwable? = null) : TegralException

Type for exceptions directly emitted by Tegral DI.