Skip to content

langchain_asimov.errors

ASIMOV for LangChain: Exception classes.

AsimovModuleNotFound

Bases: Exception

Exception raised when a module cannot be found or imported.

Attributes:

Name Type Description
module_name

The name of the module that was not found

message

Explanation of the error

__init__(module_name, message=None)

Initializes the AsimovModuleNotFound exception.

Parameters:

Name Type Description Default
module_name str

The name of the module that was not found

required
message str | None

Optional custom error message. If not provided, a default message will be generated.

None

__repr__()

Returns a detailed string representation of the exception.

__str__()

Returns a string representation of the exception.