# Stubs for xeno.errors (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from typing import Any, Optional

class InjectionError(Exception): ...

class MissingResourceError(InjectionError):
    name: Any = ...
    def __init__(self, name: Any) -> None: ...

class MissingDependencyError(InjectionError):
    name: Any = ...
    dep_name: Any = ...
    def __init__(self, name: Any, dep_name: Any) -> None: ...

class MethodInjectionError(InjectionError):
    method: Any = ...
    name: Any = ...
    def __init__(self, method: Any, name: Any, reason: Optional[Any] = ...) -> None: ...

class ClassInjectionError(InjectionError):
    class_: Any = ...
    name: Any = ...
    def __init__(self, class_: Any, name: Any, reason: Optional[Any] = ...) -> None: ...

class CircularDependencyError(InjectionError):
    resource: Any = ...
    dep: Any = ...
    def __init__(self, resource: Any, dep: Any) -> None: ...

class UndefinedNameError(InjectionError):
    name: Any = ...
    def __init__(self, name: Any) -> None: ...

class UnknownNamespaceError(InjectionError):
    name: Any = ...
    def __init__(self, name: Any) -> None: ...

class InvalidResourceError(InjectionError): ...
