Skip to content

exceptions

Exceptions related to codablellm.

CodableLLMError

Bases: Exception

Base exception class for all CodableLLM errors.

Source code in src/codablellm/exceptions.py
6
7
8
9
class CodableLLMError(Exception):
    """
    Base exception class for all CodableLLM errors.
    """

DecompilerNotFound

Bases: CodableLLMError

A decompiler could not be imported.

Source code in src/codablellm/exceptions.py
class DecompilerNotFound(CodableLLMError):
    """
    A decompiler could not be imported.
    """

ExtraNotInstalled

Bases: CodableLLMError

An extra is not installed to perform an optional feature.

Source code in src/codablellm/exceptions.py
class ExtraNotInstalled(CodableLLMError):
    """
    An extra is not installed to perform an optional feature.
    """

    def __init__(self, extra: str, *args: object) -> None:
        super().__init__(*args)
        self.extra = extra

ExtractorNotFound

Bases: CodableLLMError

A source code extractor could not be imported.

Source code in src/codablellm/exceptions.py
class ExtractorNotFound(CodableLLMError):
    """
    A source code extractor could not be imported.
    """

TSParsingError

Bases: CodableLLMError

A tree-sitter parsing error occurred.

Source code in src/codablellm/exceptions.py
class TSParsingError(CodableLLMError):
    """
    A tree-sitter parsing error occurred.
    """