Skip to content

exceptions

MissingMethodsError

Bases: ValueError

Exception when host miss some required methods for a specific workflow.

Parameters:

Name Type Description Default
host HostBase

Host implementation where are missing methods.

required
missing_methods list[str]

List of missing methods.

required
Source code in client/ayon_core/host/interfaces/exceptions.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
class MissingMethodsError(ValueError):
    """Exception when host miss some required methods for a specific workflow.

    Args:
        host (HostBase): Host implementation where are missing methods.
        missing_methods (list[str]): List of missing methods.
    """

    def __init__(self, host, missing_methods):
        joined_missing = ", ".join(
            ['"{}"'.format(item) for item in missing_methods]
        )
        super().__init__(
            f"Host \"{host.name}\" miss methods {joined_missing}"
        )